记录贴
删除旧版本php
yum remove php*
设置rpm
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
安装php
yum -y install php72w
安装扩展
yum -y install php72w-cli php72w-common php72w-devel php72w-mysql
yum -y install php72w-gd php72w-imap php72w-ldap php72w-odbc php72w-pear php72w-xml php72w-xmlrpc
yum install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm
php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
php72w-ldap php72w-mcrypt
yum install php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd
php72-php-xml php72-php-xmlrpc php72-php-opcache
yum install php72w-pdo php72w-pdo-mysql