Recommended method to upgrade PHP 5.1.6 to 5.2.x on CentOS 5.4
Solution 1:
I've done this many times using the atomic repos. In very simple terms, three steps are all that's needed in most situations:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum update php
service httpd restart
I obviously can't guarrente it will work for you, but for myself this has become the standard method.
Solution 2:
Simply Install Remi repo. And Run:
yum update -y
and wait until the updates have finished, then reboot your VPS using init:
init 6
Now you have successfully updated php on your system.