热搜:NVER node 开发 php

在CentOS7.0升级php5.4到php5.6

2024-07-23 12:30:01
在CentOS7.0升级php5.4到php5.6

原文链接

安装php5.6版本以后不再需要安装Zend Guard,而是用yum命令安装php-opcache及php-pecl-apcu就可以有效的提高php执行速度。

  1. 配置yum源

    rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

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

  2. 确认安装的php版本yum list --enablerepo=remi --enablerepo=remi-php56 | grep php

  3. 安装php5.6yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common

  4. 确认php版本php -v