[mod_python] runtime error

Ken Kinder ken at rage.x13.com
Sun Nov 26 15:15:10 EST 2000


I just got a new fresh copy of Apache, mod_ssl, mod_php, and some other fun stuff. All are from tarball. This is Debian/GNU Linux 2.2 (potato). I know
that mod_python is compiled into apache:

$ nm /usr/local/apache/bin/httpd | grep python
0810d5e1 b lib_python
08056754 T python_cleanup
08057788 T python_cleanup_handler
080f907c D python_commands
08056c5c t python_create_dir_config
08058890 t python_decref
08056f24 t python_directive
08058254 T python_finalize
08057200 t python_handler
080f906c d python_handlers
080f9064 d python_imports
08056b88 T python_init
08056dac t python_merge_dir_config
080f92c0 D python_module

But it doesn't seem to know about the directives that mod_python ads. I have this inside a virtualhost directive:

<Directory /home/staff/ken/public_html/static>
          AllowOverride FileInfo
          AddHandler python-program .py
          PythonHandler foo
          PythonDebug On
</Directory>

and when I try to do a configtest with apache, I get:

$ sudo /usr/local/apache/bin/apachectl configtest
Syntax error on line 1138 of /usr/local/apache/conf/httpd.conf:
Invalid command 'PythonHandler', perhaps mis-spelled or defined by a module not included in the server configuration

Any words of wisdom?

-- 
Ken Kinder
www.kenkinder.com



More information about the Mod_python mailing list