轉貼自 http://sblog.missv.tw/2009/08/centosphp52x.html
=================================================
修改檔案:/etc/yum.repos.d/CentOS-Base.repo
在檔案最後添加
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
上述設定網址都指向官方網站,可以放心更新 PHP。存檔後,下達更新命令:
# yum update php*
查看PHP版本:
# php -v