What kind of stack are people using for speed?

timmmmyboy

Member
Aug 26, 2013
13
1
53
Fredericksburg, Virginia
cPanel Access Level
Root Administrator
Twitter
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.
 

rarod

Active Member
Apr 20, 2017
36
2
58
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.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
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..
 

sparek-3

Well-Known Member
Aug 10, 2002
2,098
244
368
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.
 

gryzli

Well-Known Member
Jul 23, 2012
49
6
58
cPanel Access Level
Root Administrator
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.
 

inteldigital

Well-Known Member
Apr 5, 2018
88
15
8
England
cPanel Access Level
Root Administrator
Twitter
Engintron + Memcached with Mod_Isapi and you should see some serious numbers :)

Server load at 1 with 500 accounts on it.
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
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.
 

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
142
94
78
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
 
  • Like
Reactions: cPanelMichael