Home > Backend Development > PHP Tutorial > 在CentOS7.0升级php5.4到php5.6

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

WBOY
Release: 2016-06-23 13:13:39
Original
926 people have browsed it

原文链接

安装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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template