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

OPcache as default php optimizer

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
baltazor
Posts: 2
Joined: Fri Dec 25, 2015 2:25 pm

OPcache as default php optimizer
  • Quote

Post by baltazor » Fri Dec 25, 2015 2:30 pm

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.
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: OPcache as default php optimizer
  • Quote

Post by vlahonick » Fri Dec 25, 2015 9:54 pm

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.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: OPcache as default php optimizer
  • Quote

Post by skurudo » Mon Dec 28, 2015 9:30 am

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.
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: OPcache as default php optimizer
  • Quote

Post by vlahonick » Mon Dec 28, 2015 1:22 pm

That's true, there is no right answer here. I just mentioned the easiest solution (and working out of the box) to implement.
Top

baltazor
Posts: 2
Joined: Fri Dec 25, 2015 2:25 pm

Re: OPcache as default php optimizer
  • Quote

Post by baltazor » Wed Dec 30, 2015 8:04 am

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.
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: OPcache as default php optimizer
  • Quote

Post by vlahonick » Wed Dec 30, 2015 11:26 am

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.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

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
 

 

Login  •  Register

I forgot my password