While trying to configure php-cgi on a CentOS 5 server running nginx, I run into this:
[root@~~~~~~~ run]# /etc/init.d/php_cgi start
Starting php-cgi: spawn-fcgi: child exited with: 255
[FAILED]
I'm not 100% sure what's happening here, but no Google result returns anything regarding error code 255.
I was following [this guide][1] to set up php-cgi. What could the problem be?
Best Answer
lighttpd and lighttpd-fastcgi both don't provide the binary that is supposed to be started with the script he provides. (/usr/bin/spawn-fcgi).
You'd better ask the guy who wrote the tutorial where he get /usr/bin/spawn-fcgi because on my server there is no way to install it with yum. He says "Install spawn-fcgi package using yum command" but it doesn't work.
Make sure you use the same repositories than him, with the same version of centos.