默认的版本太低了,手动安装有一些麻烦,想采用Yum安装的可以使用下面的方案:
1.检查当前安装的PHP包
yumlistinstalled|grepPHP
yumremovePHP.x86_64PHP-cli.x86_64PHP-common.x86_64PHP-gd.x86_64PHP-ldap.x86_64PHP-mbstring.x86_64PHP-mcrypt.x86_64PHP-MysqL.x86_64PHP-pdo.x86_64
CentOs6.x
rpm-Uvhhttp://mirror.webtatic.com/yum/el6/latest.rpm
yum install PHP70w.x86_64 PHP70w-cli.x86_64 PHP70w-common.x86_64 PHPw-gd.x86_64 PHP70w-ldap.x86_64 PHP70w-mbstring.x86_64 PHP70w-mcrypt.x86_64 PHP70w-MysqL.x86_64 PHP70w-pdo.x86_64
4.安装PHP FPM
yum install PHP55w-fpm
yum install PHP56w-fpm
yum install PHP70w-fpm
yum install PHP70w-devel
yum install gcc-c++
yum install gcc
yum installlibtool
原文链接:https://www.f2er.com/centos/378265.html