How to enable Nginx to serve PHP code/pages in Ubuntu
varia at e-healthexpert.org
Tue Nov 4 23:37:12 MSK 2008
> env PHP_FCGI_MAX_REQUESTS=250
> env PHP_FCGI_CHILDREN=5
> exec /usr/bin/sudo -u mike /usr/local/bin/php-cgi -b 10500
This will not work.
php-cgi will not pick the values set by the env PHP_FCGI_ variables.
It will neither spwan the 5 children, nor obey the max_requests directive.
I leave it to you, as an exercise, to discover why.
Could this be a reason why you need php-fpm where php-fpm is not needed?
More information about the nginx