centos7 自带php5.4,升级到php5.6的方法: https://webtatic.com/packages/php56/ CentOS/RHEL 7.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm CentOS/RHEL 6.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm 然后执行下面的: 3.执行下面的命令删除php yum remove php-common 然后像安装那样问你是否继续的,输入yes即可 接着继续安装: yum install php56w-fpm php56w-opcache 当然,请顺便安装必要的扩展: yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring 好了,假如你像我一样还有postgresql的话,那么也顺便安装: yum install php56w-pgsql 执行完毕之后,重启php-fpm、nginx systemctl restart php-fpm nginx
【centos】php5.4升级到php5.6
未经允许不得转载:未来往事 » 【centos】php5.4升级到php5.6