Reprinted from: http://my.oschina.net/u/573270/blog/423238
On November 13, 2014, US time, the PHP development team, in "PHP 5.6.3 is available|PHP: Hypertext Preprocessor "The latest version of the PHP5.6 series "PHP 5.6.3" was announced.
In the latest version 5.6.3, not only multiple bugs have been corrected, but also security vulnerabilities in the fileinfo module have been corrected.
The PHP team recommends users using the PHP5.6 series to upgrade to the latest version 5.6.3.
A brief introduction on how to install PHP5.6 on CentOS.
Configure yum source
Add CentOS 6.x epel and remi sources.rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
Install PHP5.6
The yum source is configured, the next step is to install PHP5.6.
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
php --version PHP 5.6.17 (cli) (built: Jan 6 2016 19:05:40) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans
The version installed here is PHP5.6.0. Careful users may have discovered that ZendGuardLoader has become Zend OPcahe.
Starting from PHP5.5, the PHP code cache has changed from APC to Zend OPcache.
The above introduces the installation of php 56 under centos. The test methods are available, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.