CentOS7.4安装PHP5.6
清理环境
1  | 查看已安装  | 
配置yum源
1  | yum install epel-release  | 
查看可安装的程序包
1  | yum list --enablerepo=remi --enablerepo=remi-php56 | grep php  | 
开始安装
1  | 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-bcmath php-mbstring  | 
扩展模块
如果程序运行报错:
Call to undefined function mb_strlen()
通过命令yum install --enablerepo=remi --enablerepo=remi-php56 php-mbstring 安装模块php-mbstring即可。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 SpringCoder!
 评论











