[Pythonmac-SIG] mod_python

Dougal Graham dougalg at gmail.com
Sun Mar 18 20:50:15 CET 2007

Hey, this is actually a mod_python question. I thought it would be OK,
but if it's inappropriate here, just lmk and I'll try somewhere else!

Basically, I just installed mod_python 2.7.11 on apache 1.3.33. The
installation docs suggest creating 2 files to test mod_python. The
first is a .htaccess file containing:

AddHandler python-program .py
PythonHandler mptest
PythonDebug On

The second is a test file name mptest.py containing:

from mod_python import apache

def handler(req):
    req.write("Hello World!")
    return apache.OK

When I try to navigate to this file ( I get a
500 internal server error. Any thoughts on what might be causing

Thanks a lot,


Dougal Graham
Home: (709) 753-2831
Cell: (709) 351-0587

More information about the Pythonmac-SIG mailing list