> คลังความรู้ > Server Optimization > Install ZendOpcache for PHP 5.3 or PHP 5.4


Install ZendOpcache for PHP 5.3 or PHP 5.4


cd /usr/local/src
wget http://pecl.php.net/get/ZendOpcache
# to get the latest (master) build do the following instead:
# wget https://github.com/zendtech/ZendOptimizerPlus/archive/master.zip
tar xvfz zendopcache-7.x.x.tgz
cd zendopcache-7.x.x
phpize
# set the path below
./configure --with-php-config=/usr/local/bin/php-config
make
make install
# note the install path because you will use it below vi /usr/local/lib/php.ini


-----
zend_extension=/FULL PATH FROM ABOVE/opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=0
opcache.revalidate_freq=60
opcache.fast_shutdown=1


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read