Apache and PHP with fcgi on 10.04

Wipe_Out wipe_out at users.sourceforge.net
Tue Aug 9 15:10:30 UTC 2011

On 9 August 2011 00:59, Jordon Bedwell <jordon at envygeeks.com> wrote:

> On 08/08/11 16:54, Wipe_Out wrote:
> So by that:
> Small Server == 3 - 7 children with 100-300 requests per.
> Medium Server == 3 - 11 children with 300-1300 requests per.
> Large Server == Switch to FPM with 1300 to n-optimised requests per.
> ^ To clarify Large, you'll still need to optimise startup children too.
> Past large server I won't explain, that will just complicate things.
According to the apache website..
PHP child process management (PHP_FCGI_CHILDREN) should always be disabled
with mod_fcgid, which will only route one request at a time to application
processes it has spawned; thus, any child processes created by PHP will not
be used effectively. (Additionally, the PHP child processes may not be
terminated properly.) By default, and with the environment variable setting
PHP_FCGI_CHILDREN=0, PHP child process management is disabled.
Ref : http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

Is this something you would agree with?

My guess is that would mean APC wouldn't work similar to running php-cgi..

> If you want dynamic children you'll need to uninstall php5-cgi and
> install php5-fpm (which Ubuntu and Debian now both include because it's
> now apart of PHP since 5.3 if I remember right, could be a revision off)
> Just checked.. Its 5.3.3.. I'm on 10.04 which has 5.3.2..

FPM does sound like the answer to everything with all the benefits and
addressing all the drawbacks.. At least thats what it says on the tin..

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110809/07364f6e/attachment.html>

More information about the ubuntu-users mailing list