installapt-get install gcc make gdb libssl-dev libsqlite3-dev
wget http://python.org/ftp/python/3.1/Python-3.1.tar.bz2
CFLAGS="-O2" ./configure --prefix=/usr --enable-shared
make
make install
ldconfig
wget http://apache.mogo.be/httpd/httpd-2.2.11.tar.bz2
CFLAGS="-O2" ./configure --prefix=/usr/httpd --with-included-apr --enable-ssl=shared --enable-mime=shared --enable-deflate=shared --enable-authz_host=shared --enable-autoindex=shared --enable-dir=shared
make
make install
touch /usr/httpd/logs/httpd.log
chown www /usr/httpd/logs/httpd.log
wget -r -nd -l1 http://modwsgi.googlecode.com/svn/trunk/mod_wsgi
CFLAGS="-O2" ./configure --with-python=/usr/bin/python3.1 --with-apxs=/usr/httpd/bin/apxs --disable-embedded
make
make install run/usr/httpd/apache2ctl restart
tail -f /usr/httpd/httpd.log
curl -d "test" http://localhost:80/test.wsgi --header "Transfer-Encoding: chunked"
nc localhost 80
GET / HTTP/1.1
openssl s_client -connect localhost:443 -state -debug
GET / HTTP/1.1
Host: localhost
Transfer-Encoding: chunked
1
h
4
ello
0 debugLIBFAULT: echo "/usr/python/lib" >> /etc/ld.so.conf
LIBFAULT: LDFLAGS="-L/usr/lib64 -L/usr/lib64/python3.1/config"
SEGFAULT: ldd mod_wsgi.so
SEGFAULT: CFLAGS="-g"
SEGFAULT: gdb apache2
SEGFAULT: run -X
APPFAULT: print >> environ['wsgi.errors'], "debug message"
APPFAULT: print ("debug message", file=sys.stderr)
|