[mod_python] Newbie question for mod_perl, Apache and ActivePython on Win32

Stephen M. McAllister stephen_m_mcallister at hotmail.com
Fri Feb 22 18:45:22 EST 2002


I am trying to install and config mod_perl on a Win2k/SP2 server running the
latest Apache V1.3.23 and ActiveState ActivePython V2.1 <groan>. I read lot
of posts and FAQ's and I am still confused. The modperl.org Windows Appendix
A is totally inadequate. I still get the following error while trying to
load the mod_python in my environment.

httpd.conf snippet ==>  LoadModule python_module modules/mod_python.dll

Causes error when starting Apache => "Syntax error on line 195 of
c:/apache/apache/conf/httpd.conf:
Cannot load c:/apache/apache/modules/mod_python.dll into server: (126) The
specified module could not be found:"


I tried a number of things and got nowhere.

So my questions for trying to get Python running on Win2k with Active State
Python are:
----------------------------------------------------------------------------
-------------
1. What version of Apache for Win32 should I be running?
2. What version of ActiveState Python should I be running?
3. What version of mod_perl should I be running?
4. How can I debug what is going on so I can catch misconfigurations?
5. Does PYTHONPATH matter at all for mod_python? (mine is not set as a path
var, but is set in the registry)
6. How is it that mod_perl knows what Python interpreter to use? Does it
read the registry or PYTHONPATH or what?

Thanks a bunch!
--Steve



More information about the Mod_python mailing list