You are not logged in.
I'm using mod_python + quixote + apache
When I visite my page which using mod_python handler, got a 500 error.
It's said cant import mod_python.apache in the err_log of apache.
I start python interpreter, and from mod_python import apache.
It cant find the module.
Someone said that I should get my PYTHONHOME set correct.
But I don't know how should I do after tried some paths.
And more, I config my python_handler using a virtual location in httpd.conf.
Like this:
<LocationMatch "^/qdemo(/|$)">
SetHandler python-program
PythonHandler quixote.server.mod_python_handler
PythonOption quixote-publisher-factory quixote.demo.create_publisher
PythonInterpreter quixote.demo
PythonDebug On
</LocationMatch>
Offline
Please give us the error message and the script if possible. It makes debugging problems a lot easier.
Offline
make_obcallback(): could not import mod_python.apache
this is the only error in apache error log.
and the config of mod_python is
<LocationMatch "^/qdemo(/|$)">
SetHandler python-program
PythonHandler quixote.server.mod_python_handler
PythonOption quixote-publisher-factory quixote.demo.create_publisher
PythonInterpreter quixote.demo
PythonDebug On
</LocationMatch>
the scripts are default demo files of quixote(http://quixote.ca)
Offline
do the default scripts in the server directory work?
simple_server.py is seg faulting on me, as is the scgi server.
Offline