[mod_python] Install mod_python for Apache 1.3.37

boombick boombick at tula.net
Thu Feb 1 11:03:32 EST 2007


Hi

Sorry for my bad english =)

My soft:
Apache 1.3.37 mod_python 2.7.11 Python 2.4.3
Module loading to the httpd.conf:
     LoadModule python_module libexec/mod_python.so
     AddModule mod_python.c

And:
<Directory /usr/local/apache/htdocs/>
     Options FollowSymLinks
     AllowOverride FileInfo
     AddHandler python-program .py
     PythonHandler test
     PythonDebug On
</Directory>

In the localhost directory i create file test.py:

 from mod_python import apache

def handler(req):
     req.send_http_header()
     req.write("Hello World!")
     return apache.OK


Its not working!!! The opera browser wants save file to the disk, links  
browser said: "Error reading from socket"
In the error log of apache: mod_python: (Re)importing test from None

Help me please, and sorry for my terrible english =)



More information about the Mod_python mailing list