vi /etc/yum.repos.d/CentOS-Base.repo
到最下面加上
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
加好後
yum –disablerepo=\* --enablerepo=c5-testing install php
就會更新了
php -v 看版本是否有更新
附註:若想查看是否有最新的版本的話,可輸入http://dev.centos.org/centos/ 查詢看看
Great site. A lot of useful information here. I’m sending it to some friends!