Running PHP 5.2 FastCGI + Apache on CentOS 5 issue

Posted by Goran on Server Fault See other posts from Server Fault or by Goran
Published on 2013-10-17T14:28:25Z Indexed on 2013/10/17 16:03 UTC
Read the original article Hit count: 356

I am trying to setup 2 versions of PHP on Centos 5.9 using this tutorial: http://linuxplayer.org/2011/05/intall-multiple-version-of-php-on-one-server. I have followed I have installed default 5.4.19, and I was trying to setup another 5.2.17 PHP version to be run with Fast CGI and I followed the second part completely. However, when I try to run http://web2.example.com it returns 500 error message. In the apache log there are only 2 lines that repeat:

[notice] mod_fcgid: call /var/www/web2/index.php with wrapper /usr/local/php52/bin/fcgiwrapper.sh

and

[notice] mod_fcgid: process /var/www/web2/index.php(25250) exit(server exited), terminated by calling exit(), return code: 255

Please note that I had to add .php at the and of the FCGIWrapper because apache would not start without it:

FCGIWrapper /usr/local/php52/bin/fcgiwrapper.sh .php

Also please note that http://web1.example.com with PHP 5.4.19 is working absolutely fine. Please help. Thank you very much in advance.

© Server Fault or respective owner

Related posts about php

Related posts about centos5