From owner-freebsd-ports@FreeBSD.ORG Sun Sep 14 21:58:47 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17C671065671 for ; Sun, 14 Sep 2008 21:58:47 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 8F4DB8FC12 for ; Sun, 14 Sep 2008 21:58:46 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m8ELwigg003298 for ; Sun, 14 Sep 2008 23:58:44 +0200 (CEST) X-Ids: 166 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 5DC2689DF0 for ; Sun, 14 Sep 2008 23:58:43 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 5427839; Sun, 14 Sep 2008 23:58:43 +0200 (CEST) Date: Sun, 14 Sep 2008 23:58:43 +0200 From: Michel Talon To: freebsd-ports@freebsd.org Message-ID: <20080914215843.GA47806@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (shiva.jussieu.fr [134.157.0.166]); Sun, 14 Sep 2008 23:58:44 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93.3/8238/Sun Sep 14 19:22:28 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 48CD8914.00A by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 48CD8914.00A/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 48CD8914.00A on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.029 -> S=0.029 X-j-chkmail-Status: Ham Subject: Re: mod_python core dump X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 21:58:47 -0000 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