[mod_python] Apache service won't start after module import

Graham Dumpleton graham.dumpleton at gmail.com
Mon Jul 23 06:32:53 EDT 2007

On 23/07/07, Matthias Niederhausen <matthias.niederhausen at tu-dresden.de> wrote:
> Hi!
> I'm quite new to Python and integrating it into Apache, and wanted to
> utilize TRAC on our Windows 2003 webserver. However, things are not as easy
> as I thought: If I want to include mod_python as an Apache module, the
> service won't start anymore (but loads forever till Windows kills it after
> the timeout). Still, I got the very same configuration running on my WinXP
> pc.
> I have already done some checking to find the root of the problem, so I can
> tell that the problem has nothing to do with any Python directives - just
> only the module import brings Apache down. Another interesting thing is that
> when I run Apache not as a service, but from the command line, the import
> works and I can even get it to run the test handler(!). However, if I try
> and run TRAC in this configuration, the request times out and I get a blank
> page.
> Finally, the logs reveal nothing: there is no error message to be seen.
> Also, the Windows event log offers no information.
> Currently I use the CGI handler, but it's awfully slow. Running TRAC in its
> own webserver works, but I want to configure security settings in one place.

Ensure that the mod_python module and the Microsoft C/C++ runtime
library used, plus the Python runtime library all have access rights
which would allow the user that the Apache service runs as to read and
use them. Also ensure that you install Python as an administrator so
that the Windows registry entries were setup for the whole machine and
not just you as a user.


More information about the Mod_python mailing list