This article mainly introduces the CentOS installation PHP version switch, has a certain reference value, now share to everyone, the need for friends can refer to if the installation of PHP version is too low, or switch version
1. First, remove the PHP above the CentOS
# yum Remove Php-common
2. Introduction of the Yum source
CentOS 6.x Source
# RPM-UVH https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm# RPM-UVH https:// mirror.webtatic.com/yum/el6/latest.rpm
CentOS 7.x Source
# 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
3. Select Install according to your CentOS version, install PHP after execution
# yum Install Php70w-common php70w-mbstring php70w-fpm php70w-pecl-memcached php70w-opcache php70w-mysqlnd Php70w-pecl-redis Php70w-devel
4. Here just installed some PHP common extensions, add a new extension
# yum Install PHP70W-GD
5. View PHP Version
# php-v