[mod_python] Installing on W2K

Graham Dumpleton grahamd at dscpl.com.au
Mon Nov 6 16:39:24 EST 2006


Read:

  http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking

You might need:

<Directory /python>
AllowOverride FileInfo
</Directory>

Graham

nhytro-python at web.de wrote ..
> Hi guys, I&#180;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> 
>         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.
> 
> I took a look at the Apache error logs:
> 
> [Mon Nov 06 22:25:10 2006] [notice] mod_python: Creating 8 session mutexes
> based on 0 max processes and 250 max threads.
> [Mon Nov 06 22:25:11 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3
> OpenSSL/0.9.8d mod_python/3.2.10 Python/2.4.3 mod_autoindex_color PHP/5.1.6
> configured -- resuming normal operations
> [Mon Nov 06 22:25:11 2006] [notice] Server built: Sep 30 2006 21:24:06
> [Mon Nov 06 22:25:11 2006] [notice] Parent: Created child process 1160
> [Mon Nov 06 22:25:13 2006] [notice] mod_python: Creating 8 session mutexes
> based on 0 max processes and 250 max threads.
> [Mon Nov 06 22:25:14 2006] [notice] Child 1160: Child process is running
> [Mon Nov 06 22:25:14 2006] [notice] Child 1160: Acquired the start mutex.
> [Mon Nov 06 22:25:14 2006] [notice] Child 1160: Starting 250 worker threads.
> [Mon Nov 06 22:25:14 2006] [notice] Child 1160: Starting thread to listen
> on port 443.
> [Mon Nov 06 22:25:14 2006] [notice] Child 1160: Starting thread to listen
> on port 80.
> [Mon Nov 06 22:25:28 2006] [error] [client 192.168.2.100] File does not
> exist: C:/Program Files/xampp/htdocs/python/mptest
> 
> This does not really help.
> 
> Could someone help me out?
> 
> Thanks in advance!
> 
> 
> _______________________________________________________________________
> Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
> Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
> 
> 
> _______________________________________________
> 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