[mod_python] mod_python test

Ales Zemene ales at mur.at
Wed Feb 23 20:05:56 EST 2005


it looks like mod_python is working, but not shure what's next,
page is not displaying anything, browser is just trying to download it.

edited /home/ales/public_html/ice/python/test.py
( directory /home/ales/public_html/ice/python/ is normaly visible on net)

from mod_python import apache
def handler(req):
        req.write("Hello World!")
        return apache.OK

httpd.conf :

<Directory /home/ales/public_html/ice/python/test.py>
   AddHandler mod_python .py
   PythonHandler mptest
   PythonDebug On

restarted apache, error log:

[Thu Feb 24 02:01:28 2005] [notice] Apache/1.3.33 (Debian GNU/Linux)
mod_python/2.7.10 Python/2.3.4 PHP/4.3.10-2 configured -- resuming
normal operations
[Thu Feb 24 02:01:28 2005] [notice] suEXEC mechanism enabled (wrapper:
[Thu Feb 24 02:01:28 2005] [notice] Accept mutex: sysvsem (Default:

any idea what is missing?
Ales Zemene

More information about the Mod_python mailing list