用Webtatic.com提供的源升级PHP5.4.42

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:

CentOS/RHEL 7.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:

rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
Now you can install php by doing:

yum install php54w

选择
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
安装替换插件:
yum install yum-plugin-replace

替换升级就ok了:
yum replace php –replace-with=php54w
相关库会依赖升级。

未经允许不得转载:ganlei的个人博客 » 用Webtatic.com提供的源升级PHP5.4.42

赞 (0)
分享到:更多 ()