Updating CentOS to PHP 5.1.4

Hard to believe most distributions aren’t using PHP 5 by default these days. Anyway, to update CentOS to use the latest and greatest:

yum remove php-domxml
yum --enablerepo=centosplus upgrade php*

Unfortunately, the above steps didn’t quite get me to the version I needed. In PHP I need to use SimpleXML for a project I’m working on, and the 5.0.4 version didn’t have the version of SimpleXML that I needed.

So, I had to manually wget and install the rpm from http://dev.centos.org/centos/4/testing/i386/RPMS/php-5.1.4-1.centos.i386.rpm. This also worked fine on a Fedora Core 4 system I had to update.

Leave a Reply