【CentOS环境部署】Centos 7.x yum安装php5.6.X

版权声明:使用中有任何问题,可以留言。能解答尽量解答。 https://blog.csdn.net/liyyzz33/article/details/88352468

1.检查当前安装的PHP包

yum list installed | grep php

如果有安装的PHP包,先删除他们

yum remove

配置yum源
CentOS 7.0的源

yum install epel-release

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

安装PHP5.6.x

yum源配置好了,下一步就安装

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 -y

用PHP命令查看版本。

php --version

安装PHP-fpm

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm 

猜你喜欢

转载自blog.csdn.net/liyyzz33/article/details/88352468