Complete tutorial on installing CyberPanel + OpenLiteSpeed + WordPress

Must read:

Ferdian Alfianto

Ferdian Alfianto

Ferdian Alfianto is an Internet enthusiast, Mac Lover; likes using Wordpress, experimenting with Linux (especially Debian and Ubuntu), tinkering with pfSense routers, happy experimenting with LEMP (Linux, Nginx, MariaDB, PHP) and Redis. You can contact me here.

CyberPanel is an alternative hosting control panel that is quite capable, and should not be underestimated. CyberPanel is not a tin-tin-class control panel, as its developer is LiteSpeed Technologies, Inc .; a seasoned player in the world of hosting, with its flagship product LiteSpeed Web Server, which has been widely used by hosting providers, especially those using cPanel.

LiteSpeed Technologies released 2 types of CyberPanel, namely versions Open and Enterprise. For CyberPanel Open, OpenLiteSpeed technology is embedded, while CyberPanel Enterprise uses LSWS Enterprise technology.

We can install and use CyberPanel Open for free, with an unlimited number of workers and domains. While CyberPanel Enterprise is available for free version, but it is limited to only 1 worker, 1 domain and a maximum of 2 GB RAM. While the above version is available at a price of $10 per month for 1 worker, 5 domains and a maximum of 8 GB RAM. Up to a price of $92 per month for a configurable number of workers, with unlimited number of domains and RAM. CyberPanel Enterprise pricing information can be found at this page.

In today's tutorial we will discuss installing CyberPanel Open, so we can put some of our WordPress sites. One of the advantages of using CyberPanel for WordPress is that it has a caching system called LSCache.

CyberPanel Open features include:

  • LSCache caching system
  • Compatible with Apache rewrite-rules
  • Unlimited worker processes
  • Automatic SSL with Let's Encrypt
  • Multiple PHP
  • Brotli compression
  • Already supports TLS v1.3
  • Anti DDOS
  • Mod_security
  • ReCaptcha protection
  • High Availability
  • Easy GUI panel display
  • For a comparison of other features between CyberPanel Open vs Enterprise, see this page.

Requirements

CyberPanel requires a VPS or Cloud Server or Dedicated Server with the following specifications:

  • CentOS 7.x (preferably a minimal version)
  • Python 2.7
  • At least 1 GB RAM
  • At least 10 GB disk

Installation Process

We first update our server with the command:

yum update yum && yum update -y

Then enter this command to start the CyberPanel installation:

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

Then a choice question will appear, whether you (1) want to install CyberPanel, (2) install only addons, or (3) exit the installation process. Please enter number 1 and enter, because we will start the CyberPanel installation process.

Then the question arises again whether (1) Install CyberPanel with OpenLiteSpeed, (2) Install CyberPanel with LiteSpeed Enterprise, or (3) exit the installation. Enter number 1 and enter, because we choose to install CyberPanel with OpenLiteSpeed.

The next question, do you want to use the default admin password 1234567, or do you want the system to generate a new password for you, or do you want to enter a password of your own choice.
We choose to use the default first, then we will change it in the control panel after finishing the installation. Please type "d" and enter.

Next question, do you want to use jsDelivr to serve CSS and JavaScript files? We choose yes, because this can reduce the burden on server resources. Type "y" and enter.

Next, the question is whether you want to install the Memcached extension for PHP? We choose no, because we will use Redis. Type "N" and enter.

Next, would you like to install LiteSpeed Memcached? We choose no more. Type "N" and enter.

Next, do you want to install Memcached? Select no longer, type "N" and enter.

The next question is whether you want to install the Redis extension for PHP? I mentioned before that we will use Redis for PHP cache, so we select yes, type "Y" and enter.

Next, do you want to install Redis? Select yes, type Y and enter.

And the CyberPanel installation process will run, take a cup of coffee, we wait until the process is complete.

When the installation process is complete, the display will appear as follows:

Now try to access CyberPanel with the address:

https://alamatIPserver:8090

Like the example above, my server IP is 35.240.251.52, then the CyberPanel address is https://35.240.251.52:8090

NOTE: When accessing CyberPanel for the first time, an invalid SSL notification will appear. Just ignore it first, later we will install Let's Encrypt SSL to get a valid SSL.

Enter username "admin"And password"1234567"To log into the CyberPanel control panel. The first step before we start doing other configurations is to change the default password.

Navigate to the menu Users -> Modify User. In section "Select Account", choose admin. Then change the email according to your email, and enter a replacement password in the column Password, and click the button Modify User.

To test, please exit the control panel, and log back in with a new password. If there are no problems, next we will install SSL for CyberPanel.

Install SSL for CyberPanel Control Panel

In order to be able to access CyberPanel with valid SSL, we will create a subdomain that we point specifically to and use to access CyberPanel. For example here I use a subdomain cp.tutswebid.xyz.
For that I created an A record in DNS, and directed it to the IP address CyberPanel.

Then back to CyberPanel, we will create a website with the domain above. Select the Websites menu -> Create Website, and adjust it as shown below, after finishing click the "Create Website" button.

Wait until the process of creating the website is complete, and if successful, the display will appear as below

Next navigate to the SSL menu -> SSL Hostname, on Select Website select the subdomain that we setup above. Then click the button "SSL Issue“.

Now try to access CyberPanel using a subdomain, for example https://subdomain.com:8090

Install WordPress

Previously, we first point the domain that we want to use for the WordPress site (same as the steps to point the subdomain above). Once directed, please login to CyberPanel and click the Websites menu -> Create Website, and make the configuration as shown below, when finished, click the "Create Website" button.

Wait until there is confirmation that the website creation process is complete, then click the Websites menu -> List Websites. In the list of domains that will be installed by WordPress, click the "Manage" link.

After the page opens, scroll down to the section Application Installer, click WP + LSCache.

Then the WordPress installation configuration page will appear, please fill in an example like the following image. Press the "Install Now" button to start the WordPress installation process.

Rewrite Rules

If the installation process is complete, please visit your WordPress website. Next we will configure the LiteSpeed Cache (LSCache). But beforehand make sure our rewrite rules are executed, forcing all connections to point to HTTPS.

For that, on the domain configuration page, scroll to the "Configurations" section, and click "Rewrite Rules". On Select Template, select "Force HTTP -> HTTPS", and click "Save Rewrite Rules".

LiteSpeed Cache Configuration (LSCache)

LSCache is LiteSpeed Server's built-in caching system which is installed by default when we install WordPress. LSCache is full of features, so we don't need to install third party cache plugins (eg WP Rocket, WP Super Cache, etc.).

To begin configuration, login to WordPress, click on the “LiteSpeed Cache” menu, and click on “Show Advanced Options” to open advanced configuration.

Leave the default configuration on the tab General, Cache, Purge, Excludes, ESI, Debug & Crawler. We start from the Optimize tab, create a configuration like the following image:

Continue to the Tuning tab, make a configuration as shown below:

For the Media tab, if you want to use Lazy Load for images, please activate it by sliding the switch to ON. Lazy load functions to display images only when the visitor opens the page. For example a page that has a long content like this article, when the user opens the page, not all images will be displayed first. However, lazy load will hold, waiting for the visitor to scroll down, then the image will be displayed following the scroll.

For the CDN tab, if you use a CDN to serve javascript, css and image files, activate it here. I recommend using the CDN service, there is a free CDN service that I made, namely AnyoneCDN. If you are using Cloudflare, no CDN configuration is required.

Next, in the Advanced tab, we enable Redis cache and browser cache, see the configuration as shown below.

Cyberpanel Advanced Tab

Save all configurations by pressing the "Save Changes" button in the lower left. Your WordPress site is now ready to operate :).

Share on facebook
Facebook
Share on twitter
Twitter
Share on whatsapp
WhatsApp
Share on telegram
Telegram
Share on email
E-mail

Latest articles:

MongoDB logo
Linux

Easy to Install MongoDB on Ubuntu 20.04

This tutorial explains how to install and configure MongoDB Community Edition on Ubuntu 20.04. MongoDB is a free, open-source document database. Belongs to the so-called database family

12 Responses

    1. the error appears like how? beforehand check firewall first. VPS providers like Amazon Lightsail and Google Cloud have external firewalls. Open the ports that Cyberpanel wants so there are no problems in the future.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related article:

MongoDB logo

Easy to Install MongoDB on Ubuntu 20.04

This tutorial explains how to install and configure MongoDB Community Edition on Ubuntu 20.04. MongoDB is a free, open-source document database. Belongs to the so-called database family

rocket nginx

Rocket-Nginx + WP-Rocket: What are the Benefits?

What is Rocket-Nginx? Rocket-Nginx is a configuration add-on to Nginx for the WordPress cache plugin, WP-Rocket. The developer claims that by injecting the Rocket-Nginx configuration, the

domain

The World's Cheapest Domain Hunt!

The cheapest domain, who doesn't love getting it? Yes, even the author of this blog loves to hunt for cheap domains :). Frequently questions are asked to the author,