mod_python resources

Aleksandar Radulovic alex at a13x.net
Tue Dec 16 17:19:05 EST 2008


On Tue, Dec 16, 2008 at 8:22 PM, tmallen <thomasmallen at gmail.com> wrote:
> Are there any good tutorials out there for setting up Apache with
> mod_python?

Apart from the (clear and concise) information in the mod_python documentation?
Starts here: http://www.modpython.org/live/current/doc-html/installation.html

Compiling is as easy as:
$ ./configure --with-apxs=/usr/local/apache/bin/apxs
$ make
$ sudo make install (if you have sudo)

Configuring Apache is as easy as adding the lines in the apache config file:

LoadModule python_module libexec/mod_python.so
Alias /py /somedirectory

<Directory /somedirectory>
        AllowOverride None
        Order allow,deny
        Allow from all
        AddHandler mod_python .py
        PythonHandler mod_python.publisher
        PythonDebug On
</Directory>

That's about it.. For testing, continue reading the mod_python manual.

-- 
a lex 13 x
http://www.a13x.info



More information about the Python-list mailing list