[mod_python] Apache 2.2.2 not working

Graham Dumpleton grahamd at dscpl.com.au
Wed Oct 18 18:56:04 EDT 2006

Apache on Win32 generally runs as a special user. That user must have
access rights to the Python installation. Go through each of the directories
listed in the log output and make sure it is where the Python bits are
installed and then check the access rights to make sure the user Apache
runs on can read the files located there. If the files aren't even in those
locations, then your Python installation is stuffed up. Can you run normal
Python scripts outside of Apache?


Christoph Mewes wrote ..
> Hi,
> I'm using Apache 2.2.2 for a long time now and I wanted to use Python
> with it. So I downloaded thoe mod 3.2.10 and ran the Installer. And so
> bla bla bla ... to shorten this up:
> Apache....: 2.2.2 (E:\Software\Apache-2.2)
> mod_python: 3.2.10
> Python....: 2.4.1 (E:\Software\Python-2.4.1)
> OS........: WinXP Home SP2
> I managed to install Python and after adding the path of Python to the
> system-wide PATH variable the server started.
> But when I try to run the mptest.py from the Manual, it returns a HTPP
> 500 error. My error log says:
> [Thu Oct 19 00:45:25 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Thu Oct 19 00:45:25 2006] [error] make_obcallback: Python path being
> used "['E:\\\\Software\\\\Python-2.4.1\\\\python24.zip', '.\\\\DLLs',
> '.\\\\lib', '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> 'E:\\\\Software\\\\Apache-2.2\\\\bin']".
> [Thu Oct 19 00:45:25 2006] [error] python_handler: no interpreter
> callback found.
> [Thu Oct 19 00:45:25 2006] [error] [client] python_handler:
> Can't get/create interpreter.
> I neither know why he wants to run a python24.zip neither where to get
> one.
> Python itself runs like a charme.
> I put the following lines into my httpd.conf:
> LoadModule python_module modules/mod_python.so
> PythonOption mod_python.mutex_directory "G:/Temp"
> AddHandler mod_python .py
> PythonHandler mptest
> PythonDebug On
> Can anybody help me? Thanks alot.
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list