[mod_python] Apache 1.3.12, Python 1.6, mod_python 2.5 not playing well together

Jeff Okamoto okamoto at xfiles.intercon.hp.com
Thu Sep 28 10:15:51 EST 2000


> My httpd.conf has this in it:
> 
> <Directory /var/www>
> AddHandler python-program .py
> PythonHandler mptest
> PythonDebug on
> </Directory>

The relevant section for me is:

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory /opt/apache>
    AddHandler python-program .py
    PythonHandler mptest
    PythonDebug On
</Directory>

> The trick is that whatever is specified as the directory will get added to the
> sys.path when trying to find the module.
> 
> If your apache root is somewhere else like (/home/www or something) then add that
> instead.

Sadly, it's still not working.  It's quite sad that the install.html file
doesn't mention putting it inside a Directory directive and that there's
in fact a syntax error in it (PythonDebug *ON*, not PythonDebug).

Sigh.

Jeff



More information about the Mod_python mailing list