Best way to use PHP with nginx?
jerome at loyet.net
Sun Nov 15 18:50:55 MSK 2009
Le 15 novembre 2009 15:48, Jérôme Loyet <jerome at loyet.net> a écrit :
> 2009/11/15 Momchil Ivanov <slogster at gmail.com>:
>> На петък 13 ноември 2009 16:28:57 Jérôme Loyet написа:
>>> Is there a php-fastcgi process launcher and controller at the same time ?
>>> Because php-fastcgi or spwan-fcgi just launches N php children, N constant.
>>> I'm looking for a way to spawn fastcgi process depending on the number
>>> of concurent requests ... has anyone heard about something like that ?
>> The simplest approach would be to just hack the php code that starts N
>> children processes and somehow control that N, here is an example . There
>> is a more complicated approach, that of php-fpm, it can do a lot more than
>> just launch N processes. What it still cannot do (as of my knowledge, but that
>> might have changed) is to dynamically control that N number. If you give them
>> some money, maybe they will fix that part soon.
>> 1: http://xaxo.eu/en/patches_php-ctrlfifo.html
> There is several software or patches which can handle this kind of
> stuff, but none is stable, none is suitable
> php-fpm looks great, but it's not accurate enought because it's:
> a patch to php core, it depends on a certain version of libevent (and
> it's not compatible with OpenBSD for example), it's still a beta, some
> features are missing ... it's a good start but definitely not enought.
I forgot that php-fpm uses xml as a configuration file which is lame
and not php conf file compliant :)
More information about the nginx