[mod_python] Problems with mod_python

Martha Zimet zimet at manray.com
Wed Jan 23 15:14:22 EST 2008

I have followed your nstructions and I am still running into
the same problem, that is, only the source displays. I am running
mod_pyton version 3.1 have verified that is is indeed loaded
by checking the httpd error log per the document you referred
me to. 

Any more suggestions? My configuration file has the following:

<Directory /python>
    AddHandler mod_python .py
    PythonHandler mptest
    PythonDebug On

I have tried it also with a /test directory with the same result.
Any light you can shed would be greatly appreciated.



On Thu Jan 24  6:30 , "Graham Dumpleton"  sent:

>Try following procedure documented in:
>  http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking
>Do all the checks it talks about to make sure things are configured correctly.
>On 24/01/2008, Martha Zimet zimet at manray.com> wrote:
>> I am having problems getting mod_python to work correctly.
>> I am following the directions in
>> http://www.modpython.org/live/mod_python-3.2.8/doc-html/inst-testing.html
>> and have written a mptest.py. However, when I access mptest.py from my browser,
>> the code does not execute and all I get is the text for mptest.py
>> displaying in the browser window. For example:
>> from mod_python import apache
>> def handler(req):
>>     req.content_type = 'text/plain'
>>     req.write("Hello World!")
>>     return apache.OK
>> Does anyone have any suggestions on what could be wrong with my installation
>> or how I can further diagnose this problem? Thanks in advance and I apologize
>> if this situation has been answered before.
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list