[mod_python] Problems with mod_python

Martha Zimet zimet at manray.com
Wed Jan 23 15:18:00 EST 2008

Here is what I have put into my configuration file:

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

I have also tried things with the /test directory with the
same result. 

Any light you can further shed would be greatly appreciated.



On Wed Jan 23 11:40 , dudley ackerman  sent:

>On Jan 23, 2008, at 10:47 AM, Martha Zimet 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.
>that happened to me recently because i didn't have the path correct in  
>the httpd.conf section setting up mod_python.
>i had the capitalization wrong.
>you might show us that section you put into httpd.conf.

More information about the Mod_python mailing list