[mod_python] Problem Running mod_python with apache Apache/2.0.63

hh at dsgx.org hh at dsgx.org
Wed Aug 20 12:23:38 EDT 2008

I installed mod_python using freebsd 6.x thru ports 
mod_python module was installed in
-rwxr-xr-x  1 root  wheel  121971 Aug 20 02:18 
Added the line into my httpd.conf
LoadModule python_module /usr/local/libexec/apache2/mod_python.so
PythonOption mod_python.mutex_directory "/tmp"
AddIcon /icons/p.gif .pl .py
AddHandler python-program .py

and tried to do that hello world test
settup a directory entry like on tutorial
<Directory /home/augusto/www/trac>
        AddHandler mod_python .py
        PythonHandler mptest
        PythonDebug On
-rwxr-xr-x  1 wwwrun  wwwrun  216 Aug 20 01:31 
inside ->
from mod_python import apache

    def handler(req):
            req.content_type = 'text/plain'
                    req.write("Hello World!")
                            return apache.OK

the error_log from my apache to make sure that the mod_python module was 
Wed Aug 20 13:15:25 2008] [notice] Apache/2.0.63 (Unix) mod_python/3.3.1 
Python/2.5.2 PHP/4.4.9 configured -- resuming normal operations

Everything seems to be normal but insted of reading the file it just 
dumps the text to my browser any ideias ??? Thanks alot.

More information about the Mod_python mailing list