[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

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

from mod_python import apache

def handler(req):
    req.content_type = 'text/plain'
    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

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