problem running a python script using apache,mod_python on linux

Brad Teale teale003 at umn.edu
Wed Oct 19 12:27:54 EDT 2005


Neha,

> I have made the required changes to the httpd.conf file
> ***
> LoadModule python_module /home/ngupta/Apache2/modules/mod_python.so

Did you also add the line:
AddModule mod_python.c

> DocumentRoot "/home/ngupta/Apache2/htdocs"
> 
> <Directory />
>     AllowOverride FileInfo
> </Directory>
> 
> ***
> I m using a .htaccess file placed under Apache2/htdocs/test/
> The .htaccess file has the following code
> **
> AddHandler mod_python .py
> PythonHandler mptest
> PythonDebug On
> **

I didn't see anything else that jumps out.

Brad



More information about the Python-list mailing list