[mod_python] Installing on W2K

Jim Gallacher jpg at jgassociates.ca
Mon Nov 6 18:06:12 EST 2006


nhytro-python at web.de wrote:
> Hi guys, I´m sure you might start groaning again about another newbie with the same "install" problems, I apologize beforehand :-)
> 
> I have actually scoured the archives and googled, I found useful information but none that can help me further.
> 
> My configuration:
> 
> Windows 2000 professional
> XAMPP (http://www.apachefriends.org/en/xampp.html)
> ActivePython (ActivePython-2.4.3.12-win32-x86.msi)
> Mod_python(mod_python-3.2.10.win32-py2.4-apache2.2.exe)
> 
> I modified http.conf with thesde statements:
> 
> LoadModule python_module modules/mod_python.so
> <Directory />
>     Options FollowSymLinks
>     AllowOverride None
>     Order deny,allow
>     Deny from all
> </Directory>
> 
> 
> <Directory /python>
              ^^^^^^^

Are you sure about that? Is the directory C:/python? It should be the 
full path to the directory you want handled, possibly
	C:/Program Files/xampp/htdocs/python

>         AddHandler mod_python .py
>         PythonHandler mptest 
>         PythonDebug On 
>  </Directory>
> 
> <Location /mpinfo>
>       SetHandler mod_python
>       PythonHandler mod_python.testhandler
>  </Location>
> 
> I can call http://localhost/mpinfo, it works but http://localhost/python/mptest produces a "404, object not found error" but the file is there!! If I call http://localhost/python/mptest.py, the Server returns the source code of the mptest.py.

Jim


More information about the Mod_python mailing list