Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17753 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15658 invoked by uid 1010); 9 Aug 2005 21:35:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15643 invoked from network); 9 Aug 2005 21:35:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 21:35:01 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:55008] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 64/05-04646-58129F24 for ; Tue, 09 Aug 2005 17:35:01 -0400 Received: from [207.126.233.18] (rasmus2.corp.yahoo.com [207.126.233.18]) (authenticated bits=0) by colo.lerdorf.com (8.13.4/8.13.4/Debian-3) with ESMTP id j79LYtnn019800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 9 Aug 2005 14:34:56 -0700 Message-ID: <42F9217F.6010604@lerdorf.com> Date: Tue, 09 Aug 2005 14:34:55 -0700 User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: steve roussey CC: Andreas Korthaus , internals@lists.php.net References: <57792e85050808205143e96a8f@mail.gmail.com> <42F907A0.8070900@web.de> <57792e85050809142416ee5d6c@mail.gmail.com> In-Reply-To: <57792e85050809142416ee5d6c@mail.gmail.com> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Moving to PHP5.1 and Apache 2.2 next year, need help From: rasmus@lerdorf.com (Rasmus Lerdorf) steve roussey wrote: > On 8/9/05, Andreas Korthaus wrote: > >>By using lighttpd with fastcgi we seperate the webserver process from >>php processes (which could even work on other machines)... > > > Someone else emailed me about using FastCGI with Apache 2.1/event but > I just figured that there would be a significant slowdown using > FastCGI rather than a module/handler. (Currently I compile PHP into > Apache statically and turn off Apache's dynamic module loading ability > -- something I couldn't figure out in Apache2). What is your > experience with FastCGI? PHP by default compiles as a non-pic shared library now which is just as fast as a static build inside Apache since it is the pic stuff that slows down a DSO. So there is really no need for static builds anymore, unless you happen to be on a fringe OS that doesn't support non-pic shared libs. > Still, I looked at lighttpd and it looks promising. The one thing that > started all of this was Apache 2.1's event MPM that used a single > thread to handle all open Keep-Alives looked very efficient. I think you are probably better off solving this in a lightweight frontend process. Chances are you are going to need lingerd if you go keepalive, so perhaps the real solution is to make lingerd handle not just the shutdown, but also the startup of the request. -Rasmus