upgrade PHP 5.1.6 to 5.2.x on CentOS 5
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.
rpm -qa |grep php
If you have php-mcrypt for PHP 5.1.x installed you’ll want to remove it:
rpm -e php-mcrypt-5.1.6-15.el5.centos.1