检查当前安装包
yum list installed | grep php
删除当前安装包
yum remove php.i686 php-bcmath.i686 php-cli.i686 php-common.i686 php-gd.i686 php-ldap.i686 php-mbstring.i686 php-mysql.i686 php-pdo.i686 php-pear.noarch php-soap.i686 php-xml.i686 php-xmlrpc.i686
修改rpm源
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
安装5.6
yum install php56w.i386 php56w-cli.i386 php56w-common.i386 php56w-gd.i386 php56w-ldap.i386 php56w-mbstring.i386 php56w-mcrypt.i386 php56w-mysql.i386 php56w-pdo.i386
yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64