[mod_python] Newbie question

Victor Muslin victor at prodigy.net
Wed Dec 20 01:02:35 EST 2000

I am running Apache 1.3.12 on WindowsNT 4.0 with Python 2.0.

Tried to configure it to use mod_python. Made the following relevant 
changes in httpd.conf:
DocumentRoot "g:/top/public/web/dev/htdocs"
<Directory "g:/top/public/web/dev/htdocs">
LoadModule python_module modules/mod_python.dll

<Directory "g:/top/public/web/dev/htdocs/test">
         AllowOverride All
         AddHandler python-program .py
         PythonHandler mptest
         PythonDebug On

(Not sure whether PythonPath is necessary; it was not in instructions on 
the mod_python web site, but I saw it in some news group posting. In any 
case, the behavior is the same with or without it.)

Seems that the server loads mod_python fine, because when it comes up it 
says: Apache 1.3.12 (Win32) mod_python/2.6.3 Python/2.0 running...

As per instructions I created mptest.py and placed it into 
from mod_python import apache

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

However, when I point my browser to it 
( I get an Internal Server Error. The 
message in the error log says: [Wed Dec 20 00:45:56 2000] [error] [client] python_handler: make_obcallback returned no obCallBack!

Any insight would be appreciated.


Victor Muslin 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20001220/0b75ab5d/attachment-0003.htm

More information about the Mod_python mailing list