Learn why people are moving their WordPress setups to CyberPanel

Learn why people are moving their WordPress setups to CyberPanel

CyberPanel is a web hosting control panel based on OpenLiteSpeed. As of July 2018, WordPress is the most used content management system (~60% by w3techs survey). WordPress contains a lot of PHP code which means sometimes it is resource heavy on the server. This is why people move towards cache plugins. Cache plugins are a big relief for resource-heavy WordPress websites, but there are too many plugins to choose from. So choosing the right WordPress cache plugin is not an easy task, but as you are reading this article today, you are in luck.

Caching and WordPress

Most of the WordPress cache plugins are PHP-side caches, meaning PHP is still forked, but when there is a cache hit all the heavy lifting is avoided and a page is served from cache. In this approach, PHP is still a bottleneck when there are multiple sites or server is under high load.

People use Varnish as a reverse proxy to fix this issue, but still running a proxy is another layer and thus more processing, resulting in a high server loads.  Now there’s OpenLiteSpeed with a built-in cache module named LSCache. The LiteSpeed Cache WordPress plugin talks directly with this server-side module to generate static copies of your WordPress websites.  If there is a cache hit for a page, PHP is never forked and there is no proxy layer.

Apart from that, the LiteSpeed Cache plugin has a very intelligent cache invalidation mechanism as well as many other features including Image Optimization, CDN support and much more. Let see how we can deploy a WordPress website using CyberPanel on OpenLiteSpeed along with the LiteSpeed WordPress cache plugin.

Step 1: Install CyberPanel!

CyberPanel makes deployment of WordPress sites on OpenLiteSpeed a breeze, with very few clicks your WordPress site is ready to use, the hard part is to make a site heavy enough that it can break the LSCache stack.

This one-liner can help you start CyberPanel installation:

This script will ask you if you want to install a single or double instance MySQL version of CyberPanel.  I recommend a single instance version if the RAM is less then 1GB (512MB).

Step 2: Create a Website!

Before moving forward, we need to create a website first. Once CyberPanel is successfully installed you can access the CyberPanel interface at

https://[Server IP]:8090

Login as admin with the default password 1234567. It is HIGHLY recommended to change your password after doing so via Edit Profile.

create website

From the left menu click ‘Create Website’, enter your domain name and the other details and select PHP. It is recommended to select PHP version 7.0 or above.

Once the website is successfully created we can then set up a WordPress site using CyberPanel auto installer.

Step 4: Install WordPress!

To install WordPress navigate to:

Replace domain.com with website address you just created in step 3.

Fill in all of the required details. If you choose an empty path, then WordPress will be installed at the doc root of your website. If you choose a custom path, it will be installed relative to doc root.

After you are satisfied, you can click Install Now. This will install WordPress along with the LiteSpeed Cache Plugin.

Step 5: Verify Cache is working properly!

You can verify via curl command if the cache is working properly.

On your first run of curl you will see X-Litespeed-Cache: miss (this gives OpenLiteSpeed a chance to cache your page). When you run the curl command again you will see X-Litespeed-Cache: hit, which means the cache is working as expected.

Step 6: Advance Cache Configurations!

With out of the box CyberPanel setup you are already getting the benefits of full-page cache. But if you want to go an extra mile you can do further optimizations via the LSCache plugin.

Image Optimization, Lazy Loading, and CDN

If you want to use the JetPack CDN that is totally fine. LSCache does not conflict with JetPack image CDN. To use it, set Image CDN to On (default is Off). JetPack also optimizes images on the fly so you don’t need image optimization either.

Minification, Combination, and HTTP/2 Push

LiteSpeed Cache plugin also enables you to do Minification and Combination, which is also compatible with OpenLiteSpeed, you can read more about this feature here.

Step 7: Benchmarks (CyberPanel stack vs NGINX Stack)!

Before we jump to any conclusions we need to run benchmarks and find out the actual performance. All the servers run following hardware (CyberPanel and NGINX Stack).

  • Ram: 1GB
  • 1 CPU Core.
  • 25GB SSD.
  • Same location and same provider.

Actual Hardware configs:

Benchmark command:

CyberPanel (OpenLiteSpeed with LSCache)

NGINX Stack (PHP-FPM and W3 Total Cache)

NGINX stack took 116 seconds compared to CyberPanel OpenLiteSpeed stack which took ~1.8 seconds to complete the same number of requests. Its a great performance boost with out of the box setup.

3 thoughts on “Learn why people are moving their WordPress setups to CyberPanel

  1. Hello, this is not true as benchmark. You are comparing LSCACHE aka full page cache vs Nginx without microcache enable, specially on wordpress.
    Nginx with microcache it’s as fast as lscache (~2500 req/sec) .

    1. You can not compare micro cache with LSCache WordPress plugin, there are a million reasons for it. I will directly point you towards the link https://blog.litespeedtech.com/2017/11/01/wpw-friends-dont-let-friends-microcache/

      LSCache plugin is really intelligent and knows when to purge the content, I would say that it is not always about caching, it is about when to purge and show the right content to the users.

      And lastly it is very easy to setup LSCache, just install CyberPanel with one command use WP Auto Installer, and you are ready to go. You don’t need to be technical or power user.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: