Date: Sun, 14 Sep 2008 23:58:43 +0200 From: Michel Talon <talon@lpthe.jussieu.fr> To: freebsd-ports@freebsd.org Subject: Re: mod_python core dump Message-ID: <20080914215843.GA47806@lpthe.jussieu.fr>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080914215843.GA47806>