This tutorial, we are using a DigitalOcean Droplet based on Ubuntu 20.04 to install Cyberpanel, it’s a manager that installs OpenLiteSpeed server with plenty of features like Let’sEncrypt and LSCache. Also, we recommend you to use a pre-built marketplace image of CyberPanel based on Ubuntu 20.04 (LTS).
What is OpenLitespeed?
Litespeed is the cutting edge fast webserver solution. Do not get confused between OpenLiteSpeed and LiteSpeed; both are the same and share the same features and functionalities. Open stands for open-source. You can install OpenLiteSpeed on any VPS server running on fresh Ubuntu 20.04 or CentOS 8.x. Here we are installing CyberPanel which will control OpenLiteSpeed on VPS.
What is CyberPanel?
Cyberpanel is a control panel of OpenLiteSpeed where you can manage your websites, install WordPress, and much more. In fact, you do not need to install CyberPanel in order to Install WordPress on an OpenLiteSpeed web server when you don’t want control over Openlitespeed. But with CyberPanel you can manage SSL, create more websites, change PHP version, access files, and much more, so I recommend you to have CyberPanel.
Now you know that we are using CyberPanel to manage OpenLiteSpeed web server. When you install CyberPanel, you are installing OLS web server along with LSCache and other features that you can set-up later.
The whole setup is not so difficult, you just have to install the cyberpanel.
What is LSCache
LSCache is a built-in Openlitespeed cache solution. The plugin also works with Apache, Nginx server but there are features that only work on OpenLiteSpeed server.
VPS server running on Ubuntu 20.04 (any LTS) or Cent OS 8.x And 5$ DigitalOcean Droplet should be enough to handle a high-traffic WordPress blog.
1. Create a VPS server
Free credit active: You have $50 credit! Create CyberPanel Droplet on DigitalPanel
Option 1.1 Create a pre-built CyberPanel image based on Ubuntu 20.04
Log into your DigitalOcean account to any other VPS hosting provide an account. Create a new Droplet and select CyberPanel on ubuntu 20.04 (as shown in the image). When you choose DigitalOcean 1-click CyberPanel, it’ll be ready in one or two minutes. You can start with the cheap $5 plan, but I recommend you to choose atleast 2GB RAM plan.
Other things you want to do are the following.
- Tick a One-time password option.
- Tick Monitoring for better graph data.
- Give your droplet a good name.
Option 1.2 Create a normal VPS server
2. Install CyberPanel
Skip PART 2 if you installed one-click CyberPanel with DigitalOcean Marketplace.
CyberPanel Installation: If you did not installed CyberPanel with DigitalOcean marketplace or using any other VPS (Linode, Vultr), or don’t want to use DigitalOcean marketplace images you can manually install CyberPanel. A fresh Ubuntu or CentOS 8.x VPS server is required for that.
Please open an SSH connection using PUTTY or similar software and run. Type the IP address and select port 22. Now click on open.
A terminal window will open type root as username and password which you got on your Email. You need a VPS server IP address and SSH password. DigitalOcean sends this information via email on Droplet creation.
The terminal will show you important links and a few other things you might need.
Since we have installed CyberPanel, the page will display the version information and command which you can use to show the CyberPanel password. But if you installed plain Ubuntu /CentOS you can follow the given instruction.
Type the following command to install CyberPanel.
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
Now just follow the on-screen options. Just to cut out steps, use the following to install CyberPanel.
Select these options 1 > 1 > r > y – y – Yes
The process took me 6 minutes to complete. Once done, the end result will have login details in this format, copy this with CTRL+C. If you plan to leave the SSH screen, go with the default password (1234567) option. Of course, you’re going to change it later.
Panel username: example
Panel password: example
Mysql username: example
Mysql password: example
OPTIONAL 2.1. Update CyberPanel and OpenLiteSpeed
Very Important: It will install latest Cyberpanel2.x with stable OpenLiteSpeed version 1.6.x, you can upgrade both with following commands, which is optional.
Update CyberPanel, open an SSH connection and type. Use PUTTY to open SSH connection.
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
Update OpenLiteSpeed, open an SSH connection and type.
apt-get update && apt-get -y upgrade
It will update OpenLiteSpeed to the latest stable version.
OPTIONAL However, if you’re willing to test out the cutting-edge OLS version here you go.
wget https://openlitespeed.org/packages/openlitespeed-1.6.5.tgz tar -zxvf openlitespeed-1.6.5.tgz cd openlitespeed ./install.sh
This step is optional to install the latest version of OpenLiteSpeed, remember there is a diffrence between latest and stable.
3. Create a Website in CyberPanel
Before you install WordPress to make sure to set up your DNS. Point your Domain A and CNAME to DigitalOcean Droplet IP address. (any other VPS server IP address).
For this, you have to create a website by logging in with cyberpanel. You have to follow the following posts
1. Access CyberPanel by typing your IP address followed by :8090 in browser.
http://0.0.0.0:8090 | replace IP address
2. Enter the username and password which you got earlier.
You can type the following command to get username and password to access CyberPanel. (Open SSH connection)
sudo cat .litespeed_password
3. Go to website
In order to install a blog, first, we are going to create a Website entry in Cyberpanel. This is not a WordPress installation, the WordPress installation will take place after website entry. Login yo CyberPanel and click on the Website button.
Click Website, go to Create Website.
Select Default package and make sure to modify the package to let your WordPress site use maximum resources.
Enter the details like your domain name, email, and PHP version. You need to enter the following details.
Select owner: Admin Domain name: example.com Email: Your email address will go here Php: PHP 7.4 /* Additional features SSL: If you plan to enable let's encrypt the free SSL tick option, we can always apply SSL anytime later.
When you’re ready to go, click Create Website.
4. Install WordPress with LSCache
The motive here is installing WordPress which is not really hard to do since we have one-click installer here (which automates the user and database creation on MySQL).
CyberPanel > List Website > Example.com > Manage > Application Installer > WP + LSCache
The WordPress installer also can be accessed from this link. Make sure to fill your IP Address and domain name, (Domain name should be the same which you entered earlier during Website creation)
Fill the details.
Path: Leave it empty.
5. Enabling LetsEncrypt SSL for Domain and CyberPanel
Point your Domain to the Server IP address. Ensure DNS is correctly configured using this site.
Login to the CyberPanel dashboard.
- Go to SSL
- Manage SSL
- Select website
- Click on Issus SSL
If you want to acess the CyberPanel with your Domain name rather than the IP address, go to SSL > Hostname SSL > Issue.
You should be able to access Cyberpanel on the following.
6. Rocking with LSCache
The LSCache plugin is already installed, you’re ready to customize it further.
First, go to LSCache settings.
Enable Advanced Settings, and enabled the following settings.
- [5 Optimize] CSS/JS minify – combine – http/2 PUSH = ON
- [6 Tuning] Remove Query Strings Remove WordPress Emoji
- [CDN 8] : Load Jquery Remotely > Google / CDNJS
- A wonderful article regarding optional settings.
7. Restoring old WordPress
If you plan to move to CyberPanel from an older WordPress installation, simply create Posts backup from Tools > Backup. Make a zip file of your uploads via SFTP or something. Move that ZIP file to CyberPanel and extract. Now restore the old WordPress backup.
The default restore file upload limit is 2MB, but you can change that.
Mange PHP > BASIC > 7.3 > post_max_size = 10 MB to upload backup files.
8. Benchmark CyberPanel
Test #1. 10,000 Client per second on the homepage
The avg time was 100ms.
Success: 13,9993 It was able to sustain 20,000 Client/second for the first 10 seconds.
Test #2. 10,000 Total Client on Post page
The Sucess rate was 100% with no timeout, I ran the test for 20 seconds.
The avg time was 13 ms for the initial seconds and later goes to 7 ms!
So, unless you’re getting more than 10000 hits per second on your WordPress site, the $5 Droplet with CyberPanel will take care of that.
If you can’t access Cyberpanel dashboard, you can try the following command.
systemctl stop lscpd
systemctl start lscpd
There are multiple ways to install WordPress on a server. Previously, we published a guide WordPress with Runcloud with a free SSL trick. When I installed WordPress with CyberPanel, it really amazed me. It comes with website Backup feature and after scheduling for weekly backups I can focus on other things. CyberPanel is mainly for hosting solutions, but you can use it to have a blazing fast WordPress website powered by OpenLiteSpeed. The built-in LSCache will certainly help you handle high-traffic.
- 1. Create a VPS server
- 2. Install CyberPanel
- 3. Create a Website in CyberPanel
- 4. Install WordPress with LSCache
- 5. Enabling LetsEncrypt SSL for Domain and CyberPanel
- 6. Rocking with LSCache
- 7. Restoring old WordPress
- 8. Benchmark CyberPanel
- Test #1. 10,000 Client per second on the homepage
- Test #2. 10,000 Total Client on Post page