Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

how to install Memcached and APC?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
21 posts
  • Previous
  • 1
  • 2
  • 3
aspi
Posts: 1
Joined: Thu Jan 21, 2016 4:08 am

Re: how to install Memcached and APC?
  • Quote

Post by aspi » Thu Jan 21, 2016 4:23 am

THX everyone. Just for fresh Zend OPcache installation on VestaCP/CentOS 6.7 64Bit I've used next steps:
demian wrote:short way from CenOS

Code: 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
note: don't use apc and zendOpCache at the same time
next at the bottom of the /etc/php.ini I've added this lines:

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
restart phpd by

Code: Select all

service httpd restart
and then it could be checked by:

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
Top


Post Reply
  • Print view

21 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password