Enable ZendOPCode caching for PHP5.4

Source: Internet
Author: User
PHP5.5 has built the ZendOPcache cache system, which is also available in 5.2-5.4. After testing, the acceleration performance in php5.4 is obvious, and the effect is better than that of 5.2 + ea. Here we recommend the installation and compilation steps:

The code is as follows:


Git clone git: // github.com/zend-dev/ZendOptimizerPlus.git
Cd ZendOptimizerPlus
$ PHP_DIR/bin/phpize
./Configure \
-- With-php-config = $ PHP_DIR/bin/php-config
Make & make install

Configuration steps: in php. add zend_extension =/in ini /... full path... /opcache. so the following section is the officially recommended configuration parameter, which can improve the performance. we recommend that you use opcache. memory_consumption = 128opcache. interned_strings_buffer = 8opcache. max_accelerated_files = 4000opcache. revalidate_freq = 60opcache. fast_shutdown = 1opcache. enable_cli = 1 another: in PHP5.5, you only need to add the -- enable-opcache parameter during compilation. we recommend that you use the Zend OPcache control panel:
Https://gist.github.com/ck-on/4959032

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.