mod_python installation

Metnetsky matt at uberstats.com
Thu Feb 6 07:51:33 CET 2003


I'm trying to get mod_python working without any luck.  I compiled it to a 
DSO and I know it's loaded because PHP's function phpinfo() states Apache's 
loaded modules, where mod_python is listed.  The problem is that python 
files aren't getting processed, they're just being printed out as text.  
I've added the following lines to my httpd.conf file in order to 
appropriately deal with mod_python, but not luck.

        LoadModule python_module       libexec/mod_python.so
        
        # put in <Directory />
        AddHandler python-program .py
        PythonDebug On 

        AddType application/x-httpd-py .py

What else might I be missing?  I thought this was it?  

~ Metnetsky




More information about the Python-list mailing list