Home > Backend Development > PHP Tutorial > Install php 56 under centos, the test method is available

Install php 56 under centos, the test method is available

WBOY
Release: 2016-07-29 09:07:29
Original
1302 people have browsed it

Reprinted from: http://my.oschina.net/u/573270/blog/423238

On November 13, 2014, US time, the PHP development team, in "PHP 5.6.3 is available|PHP: Hypertext Preprocessor "The latest version of the PHP5.6 series "PHP 5.6.3" was announced.

In the latest version 5.6.3, not only multiple bugs have been corrected, but also security vulnerabilities in the fileinfo module have been corrected.

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

A brief introduction on how to install PHP5.6 on CentOS.


Configure yum source

Add CentOS 6.x epel and remi sources.

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
Copy after login

The following is the source for CentOS 7.0.

yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Copy after login

Use the yum list command to view the installable packages (Packege).

yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
Copy after login

Install PHP5.6

The yum source is configured, 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-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
Copy after login

Use PHP command to check the version.

php --version
PHP 5.6.17 (cli) (built: Jan  6 2016 19:05:40) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans
Copy after login

The version installed here is PHP5.6.0. Careful users may have discovered that ZendGuardLoader has become Zend OPcahe.

Starting from PHP5.5, the PHP code cache has changed from APC to Zend OPcache.


The above introduces the installation of php 56 under centos. The test methods are available, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
php
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