CentOS installation PHP5.6 Environment operation steps

Source: Internet
Author: User
Tags php code centos zend

In the latest version 5.6.3 not only modifies multiple bugs, but also modifies the security vulnerabilities that exist in the FileInfo module.

The PHP team recommends using the PHP5.6 series of users to upgrade to the latest version of 5.6.3.

Briefly, how to install PHP5.6 on the CentOS.

Configuring Yum Sources

Append CentOS 6.5 Epel and Remi Source.

# RPM-UVH http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

The following is the source of CentOS 7.0.

# yum Install Epel-release
# RPM-IVH http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


Use the Yum List command to view the installable packages (Packege).


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


Install PHP5.6

The Yum source is configured, and the next step is to install PHP5.6.

# yum Install--enablerepo=remi--enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php -phpunit-phpunit Php-pecl-xdebug Php-pecl-xhprof


View the version with the PHP command.


# php--version
PHP 5.6.0 (CLI) (BUILT:SEP 3 2014 19:51:31)
Copyright (c) 1997-2014 the PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
With Zend Opcache V7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
With Xdebug v2.2.5, the Copyright (c) 2002-2014, by Derick Rethans

The version installed here is PHP5.6.0, attentive users may have found Zendguardloader turned Zend Opcahe.

The PHP code cache from PHP5.5 started from APC into Zend Opcache.

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.