Upgrading to PHP 5 in CentOS 4.4
From HostThyself
Short instruction on how to upgrade to PHP 5 on a CentOS 4.4 server
Edit the file /etc/yum.repos.d/CentOS-Base.repo
Search for the [centosplus] section
Change "enabled=0" to "enabled=1"
Update PHP
yum upgrade php
If PHP fail upgrade due to dependencies, remove old PHP and then install with
yum erase php yum install php
Install some useful modules (if not already installed)
yum install php-mbstring php-mysql php-gd
Restart Apache to take effect.
/etc/init.d/httpd restart
You might also want to upgrade MySQL to version 5.
yum upgrade mysql