NOTE: Installing PHP 5.3.26 on VM Pro works for me... with a small tweak

I'm re-posting a topic that was a private post of mine as it may help others.

I am running VM Pro and needed a more up-to-date version of PHP to run some software. However I could not get virtual hosts to run under FCGId after updating to PHP 5.3.26 from the Webtactic repos. (after first disabling PHP from the other repos of course). It kept reverting to the Apache 2 handler.

andreychek to the rescue...

A simple comment out was all that was needed in a conf file.

In the /etc/httpd/conf.d/php.conf file I commented out:

############ temp added
# SetHandler application/x-httpd-php
#

Its odd its marked as 'temp added' which was not done by me!

Restarted apache and it worked.

andreychek also made this comment which also might be helpful on the subject...

#

Awesome, I'm glad you got it working!

Just a note for future reference -- if you don't have luck with the PHP packages you have installed now, there is always the option of using the php53 packages provided by RHEL/CentOS.

It's not a straight up upgrade as you did with the PHP packages you have now... what you'd need to do is make a note of what PHP packages you have installed (the ones beginning with php-), remove them, and replace them with the "php53-" packages... those were provided by RHEL/CentOS around CentOS 5.6 or so.

If what you have installed now is working, then great! You'd only need to change if that causes additional problems for you.

...Maybe a moderator could mark this is closed

Status: 
Closed (fixed)

Comments