Page 2 of 3
Re: how to install Memcached and APC?
Posted: Thu May 22, 2014 10:21 pm
by fedekrum
Hi Imperio,
Can you comment on why it is not recommended?
thanks
Re: how to install Memcached and APC?
Posted: Sat May 24, 2014 6:29 pm
by ahmiq
I have shifted from ACP to zend opcache now
Re: how to install Memcached and APC?
Posted: Sat May 24, 2014 10:43 pm
by drMacFaulty
I recommend everybody to switch to Zend opCache, because it's an integrated piece of PHP now. So there are no update checks, dependencies necessary anymore. If I'm roght, APC is a bit outdated too and doesn't have the performance which zend has, though I can't remember exactly.
I created a small tutorial in the general discussion forum in the topic update php 5.5 - how. You'll be updated to PHP 5.5 and have the Zend opCache built in. Can't get better I think (atleast I hope) :)
Re: how to install Memcached and APC?
Posted: Fri Jun 27, 2014 2:29 pm
by imperio
Can you comment on why it is not recommended?
because you can see 500 Internal errors and he is already out of date
I recommend everybody to switch to Zend opCache
this is a good solution
Re: how to install Memcached and APC?
Posted: Sun Oct 04, 2015 11:43 pm
by magzen
imperio wrote:We don't recommend to using APC on your servers
i use Opencrt with a module for increasing speed, one of the options in this module is to use memcached if installed on the server and APC, is it ok to use memcached in Vestacp? and why dont you recommend APC does it have some issues with Vestacp?
Thanks
Re: how to install Memcached and APC?
Posted: Sun Oct 11, 2015 12:22 pm
by webass
I get this output on php -i
Zend OPcache
Opcode Caching => Disabled
Optimization => Disabled
Startup Failed => Opcode Caching is disabled for CLI
although I have enabled it in /etc/php5/apache2/php.ini
and I have tried to copy it to cgi in the user folder also, not effect.
Restarted always apache and nginx...
Anythign else to restart?
And I am running the site with fcgid template. Running php 5.5.9 with ubuntu 14.04
I would like to know where to put the directives so that opcode cahce is enabled....
Please help
My conten of php.ini
[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
Re: how to install Memcached and APC?
Posted: Sun Oct 11, 2015 12:42 pm
by webass
Yayyy,
I found the file to change...
and now I got:
Zend OPcache
Opcode Caching => Up and Running
Optimization => Enabled
Startup => OK
Shared memory model => mmap
Cache hits => 0
Cache misses => 0
Used memory => 10935080
Free memory => 123282648
Wasted memory => 0
Cached scripts => 0
Cached keys => 0
Max keys => 7963
OOM restarts => 0
Hash keys restarts => 0
Manual restarts => 0
I have researched and ran php --ini and then changed
/etc/php5/cli/php.ini
Now, I got it enabled in /etc/php5/apache2/php.ini
have it in here /etc/php5/cli/conf.d/05-opcache.ini
and /etc/php5/cli/php.ini
is it okay to let the directives all there?
Or should I ONLY leave it in /etc/php5/cli/php.ini where it showed the effect?
Re: how to install Memcached and APC?
Posted: Tue Oct 13, 2015 11:19 am
by webass
when using fcgid template for apache on a ubuntu 14.04 and i want to set globally directives, like upload filesize WHICH php.ini is to be used?
I changed upload file size in this /etc/php5/apache2/php.ini
both and here /etc/php5/cli/php.ini
No changes to the upload fiel size in Wordpress.
Re: how to install Memcached and APC?
Posted: Fri Oct 16, 2015 9:15 am
by webass
Sorry ? Anybody?
I change values on several php.ini but even after a copmplete reboot the max upload in wordpress didnt change from 2MB to higher value.
Please help
Re: how to install Memcached and APC?
Posted: Fri Oct 16, 2015 11:06 am
by SCelik
Did you change values from user config directory?
On CentOS file path: /home/***USER***/conf/web/httpd.conf
<Directory /home/***USER***/web/***DOMAIN***/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value upload_tmp_dir /home/***USER***/tmp
php_admin_value upload_max_filesize 10M
php_admin_value max_execution_time 20
php_admin_value post_max_size 8M
php_admin_value memory_limit 32M
php_admin_flag mysql.allow_persistent off
php_admin_flag safe_mode off
php_admin_value session.save_path /home/***USER***/tmp
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f info@***DOMAIN***'
</Directory>