Last active
August 29, 2015 14:08
-
-
Save ckng/8444d846a8598a0f38cc to your computer and use it in GitHub Desktop.
ZendOpCache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install -y php-pear | |
$ sudo apt-get install -y build-essential php5-dev | |
$ sudo pecl search zendopcache | |
$ sudo pecl install zendopcache-7.0.3 | |
$ sudo vi /etc/php5/conf.d/opcache.ini | |
$ sudo find / -name 'opcache.so' | |
$ sudo service php5-fpm restart | |
$ sudo service apache2 restart | |
$ php -v | |
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04) | |
Copyright (c) 1997-2012 The PHP Group | |
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies | |
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies | |
// Production clean up | |
$ sudo apt-get remove --purge build-essential php5-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension=/usr/lib/php5/20090626/opcache.so | |
opcache.enable=1 | |
opcache.memory_consumption=256 | |
opcache.interned_strings_buffer=8 | |
opcache.max_accelerated_files=10000 | |
opcache.revalidate_freq=0 | |
opcache.fast_shutdown=1 | |
opcache.enable_cli=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment