Install PHP 5.6 in CentOS7.0

Source: Internet
Author: User
Tags apcu php development environment

Install PHP 5.6 in CentOS7.0

Because the server environment is migrated from CentOS6.5 to CentOS7.0, and Apache is changed to Nginx. Here we will briefly introduce how to install PHP 5.6 in centos.

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 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 -vPHP 5.6.6 (cli) (built: Feb 19 2015 10:19:37)Copyright (c) 1997-2015 The PHP GroupZend 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

Deep understanding of ini configuration in PHP

Analyze the timeout mechanism of PHP scripts

Build a PHP development environment under Ubuntu 14.04 PDF

PHP 7 innovation and Performance Optimization

PHP 7, you deserve it

Experience PHP 7.0 on CentOS 7.x/Fedora 21

Install LNMP in CentOS 6.3 (PHP 5.4, MyySQL5.6)

Nginx startup failure occurs during LNMP deployment.

Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)

Detailed php hd scanning PDF + CD source code + full set of teaching videos

Configure the php lnmp development environment in CentOS 6

PHP details: click here
PHP: click here

This article permanently updates the link address:

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.