PHP 5.5 after Acceleration plugin: ZEND opcache_php Tutorial

Source: Internet
Author: User
Tags apc

PHP 5.5 after Acceleration plugin: ZEND Opcache


As you know, PHP currently has three cache plug-ins: APC, Eaccelerator, XCache, but they may all disappear in the future, because PHP 5.5 is already integrated Zend Opcache, features similar to the first three but slightly different, caching speeds are said to be faster ( Note: It is said that I have not tested it.

php5.5 later version compiled Eaccelerator error is as follows:

 
  
  
  1. cd/usr/local/src/php- 5.6 . 0

Best modified/etc/php.ini at the end of the join:

 
 
  1. Opcache]
  2. zend_extension=/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
  3. opcache.memory_consumption=
  4. opcache.interned_strings_buffer=8
  5. opcache.max_accelerated_files=4000
  6. opcache.revalidate_freq=
  7. opcache.fast_shutdown=1
  8. opcache.enable_cli=1
Restart PHP-FPM:
The reason is that PHP5.5 the following versions have Php_logos.c,php_logos.h and other files.

If you want to continue using acceleration in the new version, now know that PHP comes with an extension opcache.

 
  
  

Test the address in https://gist.github.com/ck-on/4959032, save the above code as a PHP file and put it in the directory below your website to open it to see.

http://www.bkjia.com/PHPjc/964930.html www.bkjia.com true http://www.bkjia.com/PHPjc/964930.html techarticle PHP 5.5 After the accelerator plugin: ZEND opcache you know that PHP currently has three cache plug-ins: APC, Eaccelerator, XCache, but they may disappear in the future, because PHP 5.5 is set ...

  • 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.