Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

What kind of stack are people using for speed?

Discussion in 'Workarounds and Optimization' started by timmmmyboy, May 10, 2018.

  1. timmmmyboy

    timmmmyboy Member

    Joined:
    Aug 26, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We're looking at optimizing some servers for performance which is a huge topic with 100 opinions ranging from "optimize your code first" to "cache all the things". Let's assume this server would be running primarily WordPress and it's a mediumish-sized VPS with 8GB ram, 4 CPUs. I'm curious what folks are doing to mirror fancier setups like WP-Engine and Pantheon while still being able to have cPanel at the core. Some things we've either explored or are thinking about in some combination:

    * PHP 7 with Opcache
    * XVarnish (Varnish plugin for cPanel)
    * Engintron (Nginx plugin for cPanel)
    * PHP-FPM

    So yeah, I'd love to hear from others looking at stuff like this or folks who are running stuff in production that is working really well.
     
  2. rarod

    rarod Active Member

    Joined:
    Apr 20, 2017
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I am using xVarnish (now Cachewall) in some servers. Some things to take in account.
    • There is no stable release at the moment.
    • In the lasts months their support is almost null.
    • HTTPs has some issues with mixing certificates between clients.
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    To my experience so far, Cachewall has been good. It has some issues at times, but if you speak about how it functions, then it is quite good.
    Engintron uses Nginx and Nginx is best well known for faster static content delivery.

    If you compare these both, I will advise Cachewall with having varnish cache to delivery more faster..

    The other option is redis, which you can consider..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. timmmmyboy

    timmmmyboy Member

    Joined:
    Aug 26, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ah yeah, that was one I forgot on my list but has been on my mind. Are there any good options out there that integrate Redis well with cPanel or are most folks doing manual installs?
     
  5. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    94
    Likes Received:
    14
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    You can setup nginx full page caching in redis to directly serve the page from redis instead of php+mysql . This is the fastest you can get with Wordpress
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,777
    Likes Received:
    120
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    I'd have to wonder what just plain nginx as a web server (no Apache) with PHP-FPM would look like.

    I would think that would probably provide the best performance at the best price.

    (Litespeed might be better, but there's a licensing fee. Nginx is free).

    Configuring nginx might be problematic, since that kind of setup is not natively supported by cPanel. But if you're not actively adding accounts or domains to the server, it might be possible to set it up and just leave it.
     
  8. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    94
    Likes Received:
    14
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    There are third-party plugins that provide native nginx support
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mehdix92

    mehdix92 Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Algeria
    cPanel Access Level:
    Root Administrator
    Engintron + Memcached with Mod_Isapi and you should see some serious numbers :)

    Server load at 1 with 500 accounts on it.
     
  10. gryzli

    gryzli Well-Known Member

    Joined:
    Jul 23, 2012
    Messages:
    47
    Likes Received:
    6
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you are having only WordPress based websites, then you could go just with Varnish + eventually some memory based storage (Redis or Memcache).

    You will need to have some good rules inside Varnish , which most of the times should handle the biggest part of the traffic.

    I don't think you will get much benefit from using Nginx + php-fpm, compared to Apache/mod_fcgid, especially if you have well configured caching layers (Varnish , and wordpress caching also).

    For the WP sites, you will also need some caching plugin enabled ,maybe W3TC with Disk Enhanced Caching (for a small/medium site) or using Memcache/Redis as a PageCache backend for some heavier web sites.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. inteldigital

    inteldigital Well-Known Member

    Joined:
    Apr 5, 2018
    Messages:
    54
    Likes Received:
    9
    Trophy Points:
    8
    Location:
    England
    cPanel Access Level:
    Root Administrator
    Twitter:
    But memcached isn't considered stable for cPanel is it? I'd love to run memcached over xVarnish and possibly look at using nginx instead of apache. But would memcached really work?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @inteldigital,

    With the EA4 experimental package for memached, there is no SASL, and no per-user init files, which means it is not considered ready for shared environments. That said, you can still install it manually outside of the EA4 experimental repo. There's a thread on that topic at:

    Installing memcache and memcached with EasyApache4

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. LucasRolff

    LucasRolff Member

    Joined:
    May 27, 2013
    Messages:
    22
    Likes Received:
    14
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I'd generally recommend LiteSpeed because it's officially supported by cPanel, it's a single piece of software that offers things like QUIC, TLSv1.3, Brotli and LSCache - sure it has a license cost, but with the recent changes to licensing it might be different depending on the about of sites you need it for.

    When looking at licensing costs, you also have to take into account, if you'd have to build a similar solution using other open source products, what would the time you'd have to spend on it, and the ongoing support for it as well (and possible lack of features that you might not be able to use).

    I personally would never go back to Apache (also because LiteSpeed doesn't randomly cause blackouts during restarts), and I really don't wanna maintain a stack consisting of multiple web servers and caching solutions, to offer something a single piece of software can do for me, for not that much money :-D
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice