[Xapian-discuss] Xapian 1.0 / Apache / Python problem
Jason Stitt
jason at wistechnology.com
Fri May 25 00:33:57 BST 2007
Hi,
Since upgrading to Xapian 1.0 I'm no longer able to get the python
bindings to work running under apache with mod_python.
Works fine from the python command line interpreter/a python script,
but not under apache.
There's no exception and nothing in the server error logs. I figured
it might be a permissions issue but chmod -R 777 on the index
directory didn't help. Tried on two different machines so far. Yes,
the index was generated using 1.0.
Below is a basic mod_python handler that fails for me. It prints
Begin but not OK.
Where do I begin to figure out what's wrong here?
Thanks,
Jason
from mod_python import apache
import xapian
def handler(req):
req.content_type = "text/html"
req.write('Begin')
d = xapian.Database('my/index/path')
req.write(' OK')
return apache.OK
More information about the Xapian-discuss
mailing list