Installation
1. Check if PHP is currently installed
Rpm-qa|grep PHP
If you have PHP installed, remove the installation packages first:
Yum Remove php*
2. Install the PHP source
Centos 5 Install PHP Source:
RPM-IVH http://mirror.webtatic.com/yum/el5/latest.rpm
CentOs 6 Install PHP Source:
RPM-IVH http://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7 installs PHP source and epel extension sources:
RPM-IVH HTTPS://MIRROR.WEBTATIC.COM/YUM/EL7/EPEL-RELEASE.RPMRPM-IVH https://mirror.webtatic.com/yum/el7/ webtatic-release.rpm
3. Start installing PHP now
Install the basic installation package for php5.5:
Yum install php55w php55w-gd php55w-mbstring php55w-mysql php55w-fpm
Install the basic installation package for php5.6:
Yum install php56w php56w-gd php56w-mbstring php56w-mysql php56w-fpm
Install the basic installation package for php7.0:
Yum install php70w php70w-gd php70w-mbstring php70w-mysql php70w-fpm
After installing PHP, you need to restart Apache:
Service httpd Restart
Reprint: http://www.jb51.net/article/83466.htm
CentOS Install PHP High version