Please help me get FastCGI working with nginx
stephane+nginx at bpf.st
Mon Aug 4 14:42:30 MSD 2008
> Use php-fpm. It makes I so much easier. The spawn-fcgi stuff sucks.
> In the php-fpm.conf you can configure the tcp port or socket and just
> tell nginx to use that. It's pretty simple. I also recommend running tcp
> instead of sockets and binding to localhost unless you need to access it
> from another machine
In my own experience unix socket is better in terms of speed when
nginx and PHP are on the same computer. My test was made with httperf
and show a better rate (req/s) with PHP/FastCGI using unix socket. Why
do you recommend tcp socket ?
More information about the nginx