[mod_python] can't get mod_python to work: newbie - help, please

Ruslan Spivak alienoid at is.lg.ua
Wed May 12 14:39:33 EDT 2004


I'm using Fedora Core 1, Apache 1.3.29, mod_python-2.7.10, python-2.3.3

<Directory /usr/local/apache/htdocs/test>
        AddHandler mod_python .py
        PythonHandler mptest
        PythonDebug On


from mod_python import apache

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

Pointing browser to mptest.py i get instead of "Hello World!" source
code of mptest.py
What may be the problem?

Any help is very appreciated.
Thanks in advance

Best regards,

More information about the Mod_python mailing list