We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
how to install Memcached and APC?
Re: how to install Memcached and APC?
Hi Imperio,
Can you comment on why it is not recommended?
thanks
Can you comment on why it is not recommended?
thanks
Re: how to install Memcached and APC?
I have shifted from ACP to zend opcache now
-
- Posts: 88
- Joined: Thu Mar 06, 2014 7:52 pm
- Contact:
Re: how to install Memcached and APC?
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) :)
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?
because you can see 500 Internal errors and he is already out of dateCan you comment on why it is not recommended?
this is a good solutionI recommend everybody to switch to Zend opCache
Re: how to install Memcached and APC?
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?imperio wrote:We don't recommend to using APC on your servers
Thanks
Re: how to install Memcached and APC?
I get this output on php -i
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
although I have enabled it in /etc/php5/apache2/php.iniZend OPcache
Opcode Caching => Disabled
Optimization => Disabled
Startup Failed => Opcode Caching is disabled for CLI
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?
Yayyy,
I found the file to change...
and now I got:
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?
I found the file to change...
and now I got:
I have researched and ran php --ini and then changedZend 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
/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?
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.
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?
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
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?
Did you change values from user config directory?
On CentOS file path: /home/***USER***/conf/web/httpd.conf
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>