[mod_python] Trouble getting mod_python to work

John Salerno johnjsal at gmail.com
Wed Apr 19 10:40:35 EDT 2006


Hi everyone. I wrote before about having some trouble getting
mod_python set up on my server. I'm not the one doing it, but I've
been in touch with the admins. Whenever I try to access a PSP page, it
simply shows the HTML source code instead of properly running it. I
thought maybe this had to do with incorrect use of handlers, but I
don't know what to do about it. The htaccess file reads:

AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonDebug On

At one point they had their own custom handlers in there, but they
changed it back. Another thing they just tried was changing the
httpd.conf file and it reads:

#<IfDefine HAVE_PYTHON>

LoadModule python_module      /usr/lib/apache/mod_python.so

 #<IfDefine HAVE_PYTHON>

#AddModule mod_python.c

#</IfDefine>

AddModule mod_python.c

 <Directory "/var/www/html">

 AddHandler mod_python .psp

PythonHandler mod_python.psp

PythonDebug On

 </Directory>

But this kind of stuff is beyond me. My only other experience with
mod_python was easy, because it was properly set up and I only had to
write PSP files. I don't know what else needs to be done here to get
it working. Any help would be appreciated.

Thanks,
John



More information about the Mod_python mailing list