PHP init script to go with nginx?
atmos at atmos.org
Sat Jun 14 03:53:17 MSD 2008
We're actually using some home-brewed stuff that uses spawn-fcgi and
monit which works really reliably. It was somewhat painful to create
though. We're not a php host company but we do have PHP apps come
through occasionally. Looks like we might need to investigate this.
Thanks for the tip!
On Fri, Jun 13, 2008 at 5:24 PM, Davy Campano <dcampano at gmail.com> wrote:
> I will ditto what Mike is saying here. It took me about 20 minutes to get
> PHP-FPM all setup and configured and running great. I looked into the
> spawn-fcgi script and found lots of people with major issues such as child
> processes not respawning.
> On Fri, Jun 13, 2008 at 7:05 PM, mike <mike503 at gmail.com> wrote:
>> you can use google translate on the php-fpm site and it makes it
>> understandable enough...
>> the sample config file is in english anyway, so just download the
>> patch, patch your php and then look at the example config file - you
>> can setup multiple fastcgi pools (for instance one for each user/group
>> for privilege separation - which is one of the biggest reasons I need
>> I cannot emphasize it enough - PHP-FPM is -the- way to manage
>> PHP/FastCGI. anything else is hokey and should be deprecated :) We
>> need to get more exposure for PHP-FPM so more people are managing
>> their FastCGI properly (also not to mention it helps mature/fix some
>> FastCGI issues in PHP itself)
>> On 6/13/08, Jauder Ho <lists at ruby-forum.com> wrote:
>> > php-fpm looks interesting (although there's quite a bit of what loooks
>> > like russian =). I'll be checking it out.
>> > In the meantime, attached is what I use as an init script. Also, the
>> > following is the default file to go with it.
>> > -------------------------------
>> > START=yes
>> > # Which user runs PHP? (default: www-data)
>> > EXEC_AS_USER=foo
>> > # Host and TCP port for FASTCGI-Listener (default: localhost:9000)
>> > FCGI_HOST=localhost
>> > FCGI_PORT=9000
>> > # Environment variables, which are processed by PHP
>> > PHP_FCGI_CHILDREN=2
>> > PHP_FCGI_MAX_REQUESTS=1000
>> > Attachments:
>> > http://www.ruby-forum.com/attachment/2181/php-fastcgi
>> > --
>> > Posted via http://www.ruby-forum.com/.
More information about the nginx