Topic: PHP script not handled in mod_fcgid mode after upgrading to PHP 5.4
Hi,
I have updated PHP to 5.4 on CentOS yesterday and all the PHP script cannot be handled correctly now. I use Apache 2.2 and run PHP through mod_fcgid. What I can see from browser is only the plain text of php source code which is really weird.
Here is configuration file related:
<Directory /home/xxxx/domains/x.xxxx.com/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksifOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/xxxx/domains/x.xxxx.com/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/xxxx/domains/x.xxxx.com/fcgi-bin/php5.fcgi .php5
</Directory>
RemoveHandler .php
RemoveHandler .php5
php_admin_value engine Off
IPCCommTimeout 31
FcgidMaxRequestLen 1073741824
And php5.fcgi:
#!/bin/bash
PHPRC=$PWD/../etc/php5
export PHPRC
umask 022
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=99999
export PHP_FCGI_MAX_REQUESTS
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php-cgi
Could someone help me find where the cause is?