Page 1 of 1
OPcache as default php optimizer
Posted: Fri Dec 25, 2015 2:30 pm
by baltazor
Hello. I have some small question. Why when default installation Vesta CP don't install php opcache (or xcache or ....). It also reduces the load on the processor by the fact that not everyone will have time to generate bytecode.
Re: OPcache as default php optimizer
Posted: Fri Dec 25, 2015 9:54 pm
by vlahonick
Hi! Can you be more specific? Which php version do you refer to? Vesta will install the version available on your system. For example if you have some VPS with Ubuntu 14.04+ or Debian8, Vesta CP will install php5.5+ meaning you will not have to manually install opcache or some other cache lib to boost your speed like in the previous php versions. In my opinion (without knowing your setup) if you use php < 5.5 upgrade to 5.5+. This way you can benefit from opcache + vesta apache backend with nginx as proxy cache in the front.
Re: OPcache as default php optimizer
Posted: Mon Dec 28, 2015 9:30 am
by skurudo
baltazor wrote:Hello. I have some small question. Why when default installation Vesta CP don't install php opcache (or xcache or ....). It also reduces the load on the processor by the fact that not everyone will have time to generate bytecode.
Well, it's hard to choose for user what's will be best. There is many users, who like OPCache, but many like xcache... some use APC long time with old projects. There is no one right solution, which make all happy.
Re: OPcache as default php optimizer
Posted: Mon Dec 28, 2015 1:22 pm
by vlahonick
That's true, there is no right answer here. I just mentioned the easiest solution (and working out of the box) to implement.
Re: OPcache as default php optimizer
Posted: Wed Dec 30, 2015 8:04 am
by baltazor
vlahonick wrote:Hi! Can you be more specific? Which php version do you refer to? Vesta will install the version available on your system. For example if you have some VPS with Ubuntu 14.04+ or Debian8, Vesta CP will install php5.5+ meaning you will not have to manually install opcache or some other cache lib to boost your speed like in the previous php versions. In my opinion (without knowing your setup) if you use php < 5.5 upgrade to 5.5+. This way you can benefit from opcache + vesta apache backend with nginx as proxy cache in the front.
For example I installed VestaCP for Centos 7.2 and php 5.4.45
skurudo wrote:baltazor wrote:Hello. I have some small question. Why when default installation Vesta CP don't install php opcache (or xcache or ....). It also reduces the load on the processor by the fact that not everyone will have time to generate bytecode.
Well, it's hard to choose for user what's will be best. There is many users, who like OPCache, but many like xcache... some use APC long time with old projects. There is no one right solution, which make all happy.
I understand that, but many people install Control panel because do not know how to install a web server itself, and default opcache the best choice for these users. Those who want another php *cache versed in it and then be able to put his own with the help of several commands.
Re: OPcache as default php optimizer
Posted: Wed Dec 30, 2015 11:26 am
by vlahonick
I understand that, but many people install Control panel because do not know how to install a web server itself, and default opcache the best choice for these users. Those who want another php *cache versed in it and then be able to put his own with the help of several commands.
I couldn't agree more. But even if you are familiar with linux cli memcache, xcache etc why bother to setup all this by yourself.
Anyway, in your case I think that you should perform a clean install in your VPS and then update your repos until you get PHP installation candidate >= 5.5. When you do that, install Vesta and let it handle the installation.