Trying to get Apache + mod_python working on Win98
Niranjan Perera
perera at mindspring.com
Sun Aug 20 18:49:23 EDT 2000
Hi:
Running Win98SE
Apache 1.3.12
Python 1.5.2
Downloaded mod_python.dll
Put the dll into the Modules directory, and entered the following entries
into httpd.conf (at the bottom )
LoadModule python_module modules/mod_python.dll
AddHandler python py
PythonHandler mptest
PythonDebug On
Created a file named mptest.py in the htdocs directory
Started up apache, Apache responds with
Apache/1.3.12 (Win32) mod_python/2.4 Python/1.5.2 running...
Went to IE, and entered http://localhost/mptest.py, what I get back is the
contents of mptest.py. i.e:
from mod_python import apache
def handler(req):
req.send_http_header()
req.write("Hello World")
return apache.OK
Any suggestions ?
Thanks,
-- Niranjan
More information about the Python-list
mailing list