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

Phillip B Oldham phill at
Thu Nov 6 14:25:32 MSK 2008

Mark Alan wrote:
> Phillip B Oldham wrote:
>>> How do you set them up? Are you using Ubuntu or a Debian based Linux?
>>> Could you post example scripts on how to set up the Unix domain 
>>> sockets?
>> `/usr/bin/php-cgi -q -b unix:/tmp/php-fastcgi`
>> That's all you need. Rather than speficy "ip:port", specify 
> From an Ubuntu 8.04 LTS server (Debian based):
> # /usr/bin/php-cgi -q -b unix:/tmp/php-fastcgi
> Cannot bind/listen socket - [2] No such file or directory.
> Couldn't create FastCGI listen socket on port unix:/tmp/php-fastcgi

*Phillip B Oldham*
The Activity People
phill at <mailto:phill at>



This e-mail and its attachments are intended for the above named 
recipient(s) only and may be confidential. If they have come to you in 
error, please reply to this e-mail and highlight the error. No action 
should be taken regarding content, nor must you copy or show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail is 
not a 100% secure communications medium, and we have taken steps to 
ensure that this e-mail and attachments are free from any virus. We must 
advise that in keeping with good computing practice the recipient should 
ensure they are completely virus free, and that you understand and 
observe the lack of security when e-mailing us.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: phill.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL: <>

More information about the nginx mailing list