简单记录下使用remi php的步骤
配置源
# rhel6
yum install https://rpms.remirepo.net/enterprise/remi-release-6.rpm
# rhel7
yum install https://rpms.remirepo.net/enterprise/remi-release-6.rpm
安装指定版本php
# 查看可以装哪些版本
yum repolist all|grep php
# 安装指定版本
yum install --enablerepo=remi-php56 php
参考: https://rpms.remirepo.net/