Install the php7 environment using yum in Centos 6/7

Source: Internet
Author: User
Tags memory usage centos

The official PHP 7 version was released in early December 2015 and is welcomed by the largest version since 2004. The most significant change in PHP7 is the performance improvement, which is close to the PHP execution engine HHVM developed by Facebook. In the benchmark performance test of WordPress, the speed is 2 ~ faster than that of version 5.6 ~ 3 times, greatly reducing memory usage. PHP 7 also has some language changes, such as adding a return type declaration and adding some new reserved keywords. In terms of security, remove the PHP Security mode and add magic quotes. In addition, the new version supports 64-bit and the latest Zend Engine.

View centos version

# Cat/etc/centos-release

Delete previous php versions

# Yum remove php * php-common
 

Install the yum source corresponding to Php7 in rpm

CentOS/RHEL 7.x:

# Rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# Rpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
# Rpm-Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
 
Install php7 in yum

# Yum install php70w php70w-opcache
 
Install other plug-ins (optional)

Php70w
Php70w-bcmath
Php70w-cli
Php70w-common
Php70w-dba
Php70w-devel
Php70w-embedded
Php70w-enchant
Php70w-fpm
Php70w-gd
Php70w-imap
Php70w-interbase
Php70w-intl
Php70w-ldap
Php70w-mbstring
Php70w-mcrypt
Php70w-mysql
Php70w-mysqlnd
Php70w-odbc
Php70w-opcache
Php70w-pdo
Php70w-pdo_dblib
Php70w-pear
Php70w-pecl-apcu
Php70w-pecl-imagick
Php70w-pecl-xdebug
Php70w-pgsql
Php70w-phpdbg
Php70w-process
Php70w-pspell
Php70w-recode
Php70w-snmp
Php70w-soap
Php70w-tidy
Php70w-xml
Php70w-xmlrpc
 
Restart Apache

# Service httpd restart

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.