Depending on you feel about closed source software, LiteSpeed handles PHP very well. The free version is limited to 150 concurrent connections but offers an optimized protocol.<br><br><a href="http://www.litespeedtech.com/php-litespeed-sapi.html">http://www.litespeedtech.com/php-litespeed-sapi.html</a><br>
<a href="http://www.litespeedtech.com/products/webserver/download/">http://www.litespeedtech.com/products/webserver/download/</a><br><br><div class="gmail_quote">On Tue, Nov 4, 2008 at 11:23 AM, mike <span dir="ltr"><<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">don't use spawn-fcgi as i've had first hand problems with it not<br>
behaving properly.<br>
<br>
instead if you won't use php-fpm, just make a script that basically<br>
does php-cgi -b $port (for TCP) - you can add in the environment<br>
variables and sudo to make it run better - i wound up creating upstart<br>
jobs in ubuntu (i think ~ 7.10 this is available)<br>
<br>
this is my /etc/event.d/fastcgi-mike file:<br>
<br>
start on runlevel 2<br>
start on runlevel 3<br>
start on runlevel 4<br>
start on runlevel 5<br>
<br>
stop on shutdown<br>
<br>
env PHP_FCGI_MAX_REQUESTS=250<br>
env PHP_FCGI_CHILDREN=5<br>
<br>
respawn<br>
exec /usr/bin/sudo -u mike /usr/local/bin/php-cgi -b 10500<br>
<br>
this allows for:<br>
- running as a different user id<br>
- one file per pool<br>
- auto startup on boot<br>
- "stop fastcgi-mike" and "start fastcgi-mike" for stopping/starting<br>
and it cleans it up properly<br>
- proper environment variable support, as opposed to my experience<br>
with spawn-fcgi ignoring PHP_FCGI_MAX_REQUESTS for example<br>
<br>
php-fpm is the #1 option. #2 would be something like this (trigger it<br>
how you like but this provides all the options one could want)<br>
<br>
On Tue, Nov 4, 2008 at 6:22 AM, Edho P Arief <<a href="mailto:edho@myconan.net">edho@myconan.net</a>> wrote:<br>
> On Tue, Nov 4, 2008 at 8:42 PM, Roxis <<a href="mailto:roxis@list.ru">roxis@list.ru</a>> wrote:<br>
>> On Tuesday 04 November 2008, Edho P Arief wrote:<br>
>>> I'm also waiting for the day it's merged with PHP core but currently<br>
>>> it's the one of the best way to spawn and manage php-fcgi processes,<br>
>>> the other (not as good as using php-fpm) is using spawn-fcgi provided<br>
>>> by lighttpd (explained here<br>
>>> <a href="http://wiki.codemongers.com/NginxFcgiExample" target="_blank">http://wiki.codemongers.com/NginxFcgiExample</a> )<br>
>><br>
>> Wha's the big deal about spawn-fcgi?<br>
>> Why is i better than an one-liner shell script?<br>
>><br>
>><br>
><br>
> I don't know really, perhaps because it works on most system?<br>
><br>
> --<br>
> O< ascii ribbon campaign - stop html mail - <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
><br>
><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Adam<br><a href="mailto:zellster@gmail.com">zellster@gmail.com</a><br>