[mod_python] Mod python + apache problem

Graham Dumpleton grahamd at dscpl.com.au
Sat May 28 17:55:01 EDT 2005


Read this:

   http://www.dscpl.com.au/projects/vampire/articles/modpython-001.html

This article is specifically for people in your situation.

Try and get a basic handler going before contemplating moving to 
publisher.

Graham

On 29/05/2005, at 6:45 AM, Rafal Zawadzki wrote:

> Hello, I am trying to write some web application using modpython.
>
> I failed at beginning, I cannot configure apache to work with 
> mod-python.
>
> I am using Debian Sarge, apache and libapache-mod-python2.3.
>
> Fragments my configurations are:
>
> <Directory /var/www/modpython>
>         AllowOverride All
>         AddHandler python-program .py
>         PythonHandler mptest.py #i tried also with mptest (withoout 
> .py)
>         PythonDebug On
> </Directory>
>
>
> my mptest.py looks like:
> jabberpl:/var/www/modpython# cat mptest.py
> from mod_python import apache
> def handler(req):
>         req.send_http_header()
>         req.write("Hello World!")
>         return apache.OK
> jabberpl:/var/www/modpython#
>
>
> I started apache again... URL: http://jabberpl.org/modpython/
>
> Apache show mptest.py source, any idea?
>
> -- 
> | Rafal "Bluszcz" Zawadzki : : :: ::|
> | jid/mail: bluszcz<>jabberpl.org ::|
> | http://bluszcz.jabberpl.org :: :::|
> |_JabberPL.org_sysadmin_:_::::_:::::|
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list