#查看php套件的版本 rpm -qa |grep php
利用Testing模式升級PHP
vim /etc/yum.repos.d/CentOS-Testing.repo
在CentOS-Testing.repo加入
[c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing includepkgs=php*
升級
yum update #重啟apache service httpd restart