升级 Centos 6.5/6.7 的 php 版本

Centos 6.5/6.7 的 php 预设是用 5.3.3 这个版本号

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
vi /etc/yum.repos.d/remi.repo

进去把所有的 enabled 参数都改成 1

yum –enablerepo=remi update php* mysql*  

最后再执行升级动作

yum -y update php*

这样就可以啦!

php -v

PS:http://www.ladesign.tw/paper/info/centos_yum_update_php


原文地址:https://www.cnblogs.com/phpdragon/p/5150372.html