[mod_python] can't get mod_python to work: newbie - help, please

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed May 12 11:17:53 EDT 2004



If you're using mod_python 2.7, then follow the instructions in the 2.7
manual, not 3.1 :-)

AddHandler mod_python .py

  should be

AddHandler python-program .py


On Wed, 12 May 2004, Ruslan Spivak wrote:

> Hello,
>
> I'm using Fedora Core 1, Apache 1.3.29, mod_python-2.7.10, python-2.3.3
>
> httpd.conf:
> <Directory /usr/local/apache/htdocs/test>
>         AddHandler mod_python .py
>         PythonHandler mptest
>         PythonDebug On
> </Directory>
>
>
> mptest.py:
>
> from mod_python import apache
>
> def handler(req):
>     req.write("Hello World!")
>     return apache.OK
>
>
> Pointing browser to mptest.py i get instead of "Hello World!" source
> code of mptest.py
> What may be the problem?
>
> Any help is very appreciated.
> Thanks in advance
>
> Best regards,
> Ruslan
>
> _______________________________________________
> 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