Script to spawn php5-cgi to enable Nginx to serve PHP code/pages

Mark Alan varia at
Mon Nov 3 16:13:18 MSK 2008

Phillip B Oldham wrote:
>> DAEMON_ARGS="-q -b"
> Isn't it better to use a unix socket for connection?
> `/usr/bin/php-cgi -q -b unix:/tmp/php-fastcgi`


Unix sockets will need buffers in kernel memory instead of simply using 
the file system. If that is better or worse is something that need 
further testing. Have you tested it?


More information about the nginx mailing list