编译 mod_python错误"apxs:Error: Command failed with rc=65536"问题的解决
apxs:Error: Command failed with rc=65536
需要修改mod_python的源代码
vim src/connobject.c
把第142行
!(b == APR_BRIGADE_SENTINEL(b) ||
改为
!(b == APR_BRIGADE_SENTINEL(bb) ||
安装Apache
sudo apt-get install apache2
配置文件
FILE: /etc/apache2/conf.d/charset
AddDefaultCharset UTF-8
FILE: /etc/apache2/httpd.conf
LoadModule python_module /usr/lib/apache2/modules/mod_python.so
<Location "/mysite">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
SetEnv PYTHON_EGG_CACHE /tmp
PythonOption django.root /mysite
PythonPath "['/var/www/', '/var/www/mysite', '/var/www/mysite/mysite'] + sys.path"
PythonDebug On
</Location>