Manual 12-Install PHP accelerator Zend opcache

Source: Internet
Author: User
Tags config php manual install php zend
PHP 5.4
wget http://pecl.php.net/get/zendopcache-7.0.2.tgz
tar xzf zendopcache-7.0.2.tgz
CD zendopcache-7.0.2
Phpize
./configure make make
install



php5.5 already built, directly configured on line
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/opcache.so
; Top Zend_ Extension path is opcache.so path
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
Opcache.enable_cli=1


/USR/LOCAL/PHP/SBIN/PHP-FPM//Start

You can see whether it takes effect through phpinfo, and the following figure is my config PHP extension:




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.