root@linuxbox ~]# wget
http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-8.ius.el5.noarch.rpmroot@linuxbox ~]# wget
http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-5-4.noarch.rpmroot@linuxbox ~]# rpm -Uvh ius-release*.rpm epel-release*.rpm
$ sudo yum install yum-plugin-replace
[root@linuxbox ~]# yum replace php --replace-with php52
来源
http://wiki.iuscommunity.org/Doc/ClientUsageGuide 任一种办法
CentOS 5.x 系统下使用yum 升级php到5.2.x 最方便方法
先将以下地址导入。
# rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# vi /etc/yum.repos.d/CentOS-Base.repo
增加下面信息
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
执行命令,自动升级。
yum update php -y
yum install libmcrypt -y