[mod_python] Install mod_python for Apache 1.3.37

Graham Dumpleton grahamd at dscpl.com.au
Thu Feb 1 16:01:57 EST 2007


Don't use 'test.py' as the name 'test' clashes with a standard Python module.
More importantly, read:

  http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking

It should hopefully help you.

Graham

boombick wrote ..
> 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 =)
> 
> _______________________________________________
> 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