This link is not guaranteed to be permanent and if it fails please go to rpm search to download the corresponding package.
1. Run the following command
#wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
#wget http://rpms.famillecollet.com/enterprise/5/remi/i386/remi-release-5-7.el5.remi.noarch.rpm
#rpm-UVH remi-release-5*.rpm epel-release-5*.rpm
2. Edit/etc/yum.repos.d/remi.repo
#vi/etc/yum.repos.d/remi.repo
At the end of this file, add a line:
Priority=1
Save exit.
/etc/yum.repos.d/epel.repo and/etc/yum.repos.d/epel-testing.repo These two files are also edited according to the above Method!
3, the use of the following command to upgrade, if the individual upgrade PHP will be prompted to fail, only together with MySQL upgrade can be, we must execute the following command to upgrade PHP to 5.3 version:
#yum –enablerepo=remi Update php* mysql*