Install/upgrade to php 5.2.5 on Centos4
1, Get FedoraCore php src rpm
-> http://ftp.riken.jp/Linux/fedora/releases/9/Fedora/source/SRPMS/
2, Install php 5.2.5.src.rpm, and modify spec
root@ns99 ~# rpm -ivh php-5.2.5-7.fc9.src.rpm
root@ns99 SPECS#cd /usr/src/redhat/SPECS
replace php.spec as provide here. ” it for avoid error on php test step”
Download php.spec here
3, build rpm and install
If any package need for dependency, install before build rpm.