The default version is too low and manual installation is troublesome. if you want to use Yum for installation, you can use the following solution: the default version is too low and manual installation is troublesome, if you want to install Yum, you can use the following solution:
1. check the currently installed PHP package
yum list installed | grep php
If you have installed PHP packages, delete them first.
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
CentOs 6.x
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64
4. install PHP FPM
yum install php55w-fpm yum install php56w-fpm yum install php70w-fpmyum install php70w-develyum install gcc-c++yum install gccyum install libtool
The above section details how to install php7 in centos6.7. For more information, see other related articles in the first PHP community!