[mod_python] Configuring Apache

spencer.wilson at comcast.net spencer.wilson at comcast.net
Thu Apr 1 22:43:16 EST 2004

Linux debian 2.2.20 #1 Sat Apr 20 11:45:28 EST 2002 i686 GNU/Linux

Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2

Apache/1.3.29 Server

LoadModule python_module /usr/lib/apache/1.3/mod_python.so
<Directory /var/www/>
    AddHandler python-program .py
    PythonHandler mptest
    PythonDebug On

AddType text/x-python .py


When I try to run my Python CGI scripts, I get a message from Mozilla saying "Mozilla does not know how to handle this file type."

What do I need to be doing to get mod-python working with Apache?

- Spencer Warren Wilson

More information about the Mod_python mailing list