Install PHP7 environment via Yum under Centos 6/7

Source: Internet
Author: User

This article transferred from: Yunxi Community

The PHP7 version was released in early December 2015 and ushered in the largest release since 2004. The most significant change in PHP7 is the dramatic improvement in performance, which is close to the PHP execution engine HHVM developed by Facebook. In the WordPress benchmark performance test, the speed is more than 5.6 times faster than the version, greatly reducing the memory footprint. PHP7 also has some changes in language, such as adding a return type declaration, adding some new reserved keywords, and so on. In terms of security, remove the PHP security mode, add magic quotes, and so on. Not only that, the new version also supports 64-bit, and includes the latest version of the Zend engine.

View the CentOS version

# Cat/etc/centos-release

Remove the previous PHP version

# yum Remove php* Php-common

RPM installation PHP7 the corresponding Yum source

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

Yum installation PHP7

# yum Install php70w Php70w-opcache

Install additional plugins (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

Install PHP7 environment via Yum under Centos 6/7

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.