[mod_python] Need help with configuration, coudn't find anything to help in the archives

Jayson Barr kuzmaionitch at gmail.com
Thu Jul 21 17:48:17 EDT 2005


Hi,
I am having some configuration problems with mod_python i think.

My system info:
Debian 3.0
Linux Kernel 2.4
Apache 2.0.54
mod_python 3.2.3
Python 2.3.5

I used a .htaccess:
AddHandler python-program .py
PythonHandler mptest
PythonDebug On

mptest.py:
from mod_python import apache

def handler(req):
    req.content_type = 'text/plain'
    req.write('mptest.py\n')
    return apache.OK


Okay, so I get a 500 error in my browser and my server log says that
it can't import mod_python.apache

My first guess was that there was a problem with mod_python
installation.  I had installed it easilly enough, though:
apt-get install libapache2-mod-python2.3

Any help would be extremely appreciated

Thanks,
Jayson Barr
-- 
  @,,@   Jayson Barr~~~
  (------)    jbarr at nmt.edu~~~
( >__< )  (505)-977-5428~~~
^^ ~~ ^^   
NMT Langmuir Lab
801 Leroy Place



More information about the Mod_python mailing list