CentOS 6 - install opcache
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
CentOS 6 - install opcache (php 5.4, remi repo)
# yum install php54-php-pecl-zendopcache.x86_64
# vi /etc/php.ini zend_extension=/opt/remi/php54/root/usr/lib64/php/modules/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
# /etc/init.d/httpd restart
# php -v PHP 5.4.43 (cli) (built: Jul 8 2015 12:08:50) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.5, Copyright (c) 1999-2015, by Zend Technologies
что установилось:
# rpm -ql php54-php-pecl-zendopcache-7.0.5-1.el6.remi.x86_64 /opt/remi/php54/root/etc/php.d/opcache-default.blacklist /opt/remi/php54/root/etc/php.d/opcache.ini /opt/remi/php54/root/usr/lib64/php/modules/opcache.so /opt/remi/php54/root/usr/share/doc/php54-php-pecl-zendopcache-7.0.5 /opt/remi/php54/root/usr/share/doc/php54-php-pecl-zendopcache-7.0.5/LICENSE /opt/remi/php54/root/usr/share/doc/php54-php-pecl-zendopcache-7.0.5/README /opt/remi/php54/root/var/lib/pear/pkgxml/php54-php-pecl-zendopcache.xml