mod_python 配置
mod_python安装./configure --with-apxs=/home/apache/bin/apxs --with-python=/usr/local/bin/python2.5
make
make install
安装mod_python错误:
apxs:Error: Command failed with rc=65536
重新安装python :
./configure --enable-shared
make
make install
vi /etc/ld.so.conf.d/python2.5.conf 输入/usr/local/lib
ldconfig
Apache 配置:
LoadModule python_module /home/apache/modules/mod_python.so
<Location "/py/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE apps.settings
PythonDebug On
PythonPath "['/data/pywww'] + sys.path"
</Location>
页:
[1]