此文,老徐实操所用的Linux发行版 centos 6.x
1. 添加php 5.6版本的源
CentOs 6.xrpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7.Xrpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
</pre>
2. 检查可用的安装包
[www@istester ~] </pre>
3. 安装php5.6
1)命令
yum install php56w php56w-mysql php56w-mbstring php56w-mcrypt php56w-gd php56w-imap php56w-ldap php56w-odbc php56w-pear php56w-xml php56w-xml