PHP 7 Installing and opening the Opcache tutorial

Source: Internet
Author: User
Tags fpm php file


Brother Bird said in the blog, improve PHP 7 performance of a few tips, the first is to open Opache, quoting the original:

Remember to enable Zend Opcache, because PHP7 even if the Opcache speed is not enabled than PHP-5.6 enabled Opcache faster, so before the test period occurred someone has not enabled the opcache of things

My Aliyun server is through a call Remi CentOS source to provide PHP 7, the default does not install Opcache, with Yum list yum70* command Search, sure enough, so install down:

Yum Install php70-php-opcache.x86_64

Then restart PHP-FPM and use the service php70-php-fpm restart command. (Different systems and environments are installed and opened according to their own situation Opache)

Opcache

Create a new PHP file, use the Phpinfo () function to display php.ini information, if you can find the Opcache entry, the description was successfully enabled. Install and enable PHP 7, is to give PHP 7 plus a wing!

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.