Yum Source default version is too low, manual installation has some trouble, want to adopt Yum Update installed can use the following scenario:
1. Check the currently installed PHP package
Yum List Installed | grep php
If there are 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-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
2, replace the RPM source
Centos 5.X:
rpm-uvh http://mirror.webtatic.com/yum/el5/latest.rpm
Centos 6.x:
rpm-uvh http:// mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7.X:
RPM-UVH https://mirror.webtatic.com/yum/el7/ epel-release.rpm
RPM-UVH https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
If you want to remove the package installed above, reinstall the
Rpm-qa | grep webstatic
rpm-e a package that is searched above
3. Run Yum Install
php5.5
Yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php55w-gd.x86_64 php55w-mbstring.x86_64 php55w-mcrypt.x86_64 php55w-mysql.x86_64 php55w-pdo.x86_64
php5.6
Yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64
php7.0
Yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.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-fpm systemctl
enable Php-fpm.service " Boot from Startup "
This update to upgrade the PHP version can be completed.