• CentOS and php_cgi
    5 replies, posted
It was a tossup between the Lunix forums and the WebDev, but 80% of here knows their shit with servers so WebDev won. In a nutshell, I've moved to a (FanaticalVPS :v:) CentOS VPS, and after configuring php_cgi and shit, I run it and get this awesome error: [QUOTE][root@~~~~~~~ run]# /etc/init.d/php_cgi start Starting php-cgi: spawn-fcgi: child exited with: 255 [FAILED][/QUOTE] I cannot find anything on Google with errorcode 255 for the life of me, and there's nothing in /var/log. So FPWD, in the words of 4chan /b/, what do? [editline]15th October 2010[/editline] I'm using Nginx, not Lighttpd or any other HTTPD.
nginx + php-fpm don't work well on CentOS. I'd say go Fedora if you want to use nginx and php-fpm.
Which version of nginx? Is it the really old in-repository 0.6.7? Or did you install a newer version?
Why not install Debian or Ubuntu, seeing as you're familiar with that?
Check that spawn-fcgi is actually there, and that permissions are correct. Should probably be at /usr/bin/spawn-fcgi.
[QUOTE=andersonmat;25416979]nginx + php-fpm don't work well on CentOS. I'd say go Fedora if you want to use nginx and php-fpm.[/QUOTE] I'd rather have gone the way I usually do, which is just the base php5-cgi packages and work with it from there, but CentOS doesn't seem to have them, or they're named differently. [editline]16th October 2010[/editline] [QUOTE=Hexxeh;25424341]Check that spawn-fcgi is actually there, and that permissions are correct. Should probably be at /usr/bin/spawn-fcgi.[/QUOTE] [CODE][root@~~~~~~~ ~]# cd /usr/bin [root@~~~~~~~ bin]# ls | grep spawn spawn-fcgi [/CODE] [editline]16th October 2010[/editline] [QUOTE=PvtCupcakes;25420021]Which version of nginx? Is it the really old in-repository 0.6.7? Or did you install a newer version?[/QUOTE] I have the latest version, I added the centos.alt.ru repo. [editline]16th October 2010[/editline] [QUOTE=X'Trapolis;25423982]Why not install Debian or Ubuntu, seeing as you're familiar with that?[/QUOTE] Nick doesn't have the 10.10 templates yet, and Ubuntu updates distros too frequently.
Sorry, you need to Log In to post a reply to this thread.