mod_python core dump
Michel Talon
talon at lpthe.jussieu.fr
Sun Sep 14 21:58:47 UTC 2008
Jeremy Chadwick wrote:
> As for solution, the solution here is to not use mod_python. Surely
> something like cgiwrap or FastCGI could be made to work with python.
Indeed python works very well with FastCGI, this is the way Django works
for example. But this requires some small modification of the program
in question so that it speaks FastCGI. A simple working example is:
http://www.lpthe.jussieu.fr/~talon/show_index.fcgi
notably the function request_handler and the following (the rest is
irrelevant here). For the needed Apache configuration, the Django doc
is clear:
http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/
the lighttpd configuration is in the comments at the beginning of my
script. I have checked that running through fcgi and lighttpd gives far
better performance that under Apache anyways.
--
Michel TALON
More information about the freebsd-ports
mailing list