1.
CentOS/RHEL 7.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm |
2.
yum install php70w php70w-opcache |
3.
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace |
4. 重启apache 服务 systemctl restat httpd.service