how to install Memcached and APC?
Re: how to install Memcached and APC?
THX everyone. Just for fresh Zend OPcache installation on VestaCP/CentOS 6.7 64Bit I've used next steps:
restart phpd by
and then it could be checked by:
next at the bottom of the /etc/php.ini I've added this lines:demian wrote:short way from CenOS
note: don't use apc and zendOpCache at the same timeCode: Select all
php -v return version 5.4 yum install --enablerepo=remi php-pecl-zendopcache -y ___________________ php -v return version 5.4 yum install php-pecl-zendopcache -y
Code: Select all
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=128
; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
opcache.max_accelerated_files=4000
Code: Select all
service httpd restart
Code: Select all
php -i
Code: Select all
Zend OPcache
Opcode Caching => Up and Running
Optimization => Enabled
Startup => OK
Shared memory model => mmap
Cache hits => 0
Cache misses => 0
Used memory => 10935072
Free memory => 123282656
Wasted memory => 0
Interned Strings Used memory => 496400
Interned Strings Free memory => 7892208
Cached scripts => 0
Cached keys => 0
Max keys => 7963
OOM restarts => 0
Hash keys restarts => 0
Manual restarts => 0