Brian Parkinson
Brian.Parkinson at quest.com
Mon Dec 8 17:44:44 EST 2003
Hello: I am trying to get mod_python working, and for the life of me I'm stumped. Version of Python: 2.2 Version of Apache: 2.0.48 Version of mod_python: 3.0.4 Here is the bit from my http.conf file in the Apache dist: LoadModule python_module modules/mod_python.so <Directory "C:/home/web/docs/"> AddHandler python-program .py PythonHandler test PythonDebug On </Directory> I have a file called C:/home/web/docs/test.py and it contains: from mod_python import apache def handler(req): req.write("Hello World!") return apache.OK When I re-start Apache, and then enter the URL to the test.py file (http://localhost/test.py) the following is my log message: [Mon Dec 08 14:40:03 2003] [notice] Parent: Created child process 2188 [Mon Dec 08 14:40:03 2003] [notice] Child 2188: Child process is running [Mon Dec 08 14:40:03 2003] [notice] Child 2188: Acquired the start mutex. [Mon Dec 08 14:40:03 2003] [notice] Child 2188: Starting 250 worker threads. [Mon Dec 08 14:40:16 2003] [error] make_obcallback: could not import mod_python.apache. Agh! Can anyone help me? This seems to close, but yet so far. Thanks, parki...
|