ZendOptimizerPlus on Debian

Apr 17, 2014 23:49

Download

mkdir ~/tmp
cd ~/tmp/
wget https://github.com/zend-dev/ZendOptimizerPlus/archive/master.zip -O ZendOptimizerPlus-master.zip
unzip ZendOptimizerPlus-master.zip
cd ZendOptimizerPlus-master/

Compile

export PHP_DIR=/usr
PHP_AUTOCONF=autoconf $PHP_DIR/bin/phpize
./configure \
--enable-optimizer-plus \
--with-php-config=$PHP_DIR/bin/php-config && make

Install by copying either from libs or from modules subdirectory

sudo cp .libs/opcache.so /usr/lib/php5/[0-9]*/
sudo chmod 644 /usr/lib/php5/[0-9]*/opcache.so

Edit php.ini

;;;;; zend extensions
zend_extension=/usr/lib/php5/20100525/opcache.so

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

Then restart php5-fpm. Got 4x times performance increase at Debian wheezy + ZF2 + Doctrine2.

https://github.com/zendtech/ZendOptimizerPlus/

Performance increase:


программинг, zf2

Previous post Next post
Up