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
- ReCaptcha protection
- High Availability
- Easy GUI panel display
- For a comparison of other features between CyberPanel Open vs Enterprise, see this page.
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
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, 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:
Like the example above, my server IP is 18.104.22.168, then the CyberPanel address is https://22.214.171.124: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
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.
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.
Next, in the Advanced tab, we enable Redis cache and browser cache, see the configuration as shown below.
Save all configurations by pressing the "Save Changes" button in the lower left. Your WordPress site is now ready to operate :).