Skip to main content

Updating to PHP 5

Problem

I have a user who wants PHP 5 on our server.

Solution

This is a horrible problem. Advice on the mailing group is to rebuild apache and php from scratch and run that. Personally I'd prefer shooting the user, but since that generally frowned upon I got this to work using the delightfully useless centosplus repository:

# yum --enablerepo centosplus --exclude php-pecl-ssh2 --exclude php-eaccelerator --exclude php-pear-Image-GraphViz --exclude php-pear-PHPUnit2 install php php*