How to install php5.6 in CentOS 7.0 yum

Source: Internet
Author: User
Tags apcu install php centos zend

After php5.6 is installed, you no longer need to install Zend Guard. Instead, you can use the yum command to install php-opcache and php-pecl-apcu, which can effectively improve the php execution speed.

1. Configure the yum source

Check whether the yum source link is valid.

# 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. Confirm the installed php version.

# Yum list -- enablerepo = remi -- enablerepo = remi-php56 | grep php

3. Install php5.6

# Yum install -- enablerepo = remi -- enablerepo = remi-php56 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
Php-opcache and php-pecl-apcu can effectively improve the php execution speed.

4. Confirm the php version

# Php-v
PHP 5.6.6 (cli) (built: Feb 19 2015 10:19:37)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
With Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
With Xdebug v2.3.1, Copyright (c) 2002-2015, by Derick Rethans

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.