[mod_python] mod_python ( apache cannot be started )

Michael Jaeger michael.jaeger at brainmedia.de
Wed Jun 13 11:31:39 EST 2001

 santhosh at swamicyber.com wrote:

> I added the following lines to the httpd.conf after installing
> mod_python ( static compilation )
>  <Directory /python>
>     AddHandler python-program .py
>     PythonHandler mptest
>     PythonDebug On
>  </Directory>
> When I start apache I get the following error message.
> Syntax error on line 953 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'PythonHandler', perhaps mis-spelled or defined by a
> module not
> included in the server configuration
> ./apachectl start: httpd could not be started

Did you add the line

LoadModule python_module modules/mod_python.dll    (if under Windows)
LoadModule python_module libexec/mod_python.so      (if under Linux)

to your http.conf?

More information about the Mod_python mailing list