[mod_python] invalid command in Apache config

Larry Goodwin goodwin at apple.com
Wed Aug 9 22:21:02 EST 2000


I installed mod_python by changing the Apache config. 
Added "AddModule modules/extra/mod_python.c" to the Configuration file
Copied mod_python.c from mod_python...src/mod_python.c to apache.../src/modules/extra/
Ran configure, make and make install

Added the following to the httpd.conf file.
<Directory "/usr/local/webpages/test/">
AddHandler python-program .py
PythonHandler test
PythonDebug On
</Directory>

The test.py file is in /usr/local/webpages/test/
When I run apachectl configtest I get:
Syntax error on line 561 of /usr/local/apache/conf/httpd.conf:
Invalid command 'PythonHandler', perhaps mis-spelled or defined by a
module not included in the server configuration

Apache is 1.3.12 and mod_python is 2,4,1, Python is 1.5.2

Is there any way to make sure the mod_python.c was added to Apache or is
there another problem/

thanks



More information about the Mod_python mailing list