This tutorial, we are using a DigitalOcean Droplet built upon Ubuntu 18.04. Also, we recommend you to use a pre-built marketplace image of CyberPanal based on Ubuntu 18.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 18.04 or CentOS 7.x. Here we are installing CyberPanal which will control OpenLiteSpeed on VPS.
What is CyberPanal?
Cyberpanal is control panel of OpenLiteSpeed where you can manage your websites, install WordPress and much more. In fact, you do not need to install CyberPanal in order to Install WordPress on an OpenLiteSpeed web server when you don’t want control over Openlitespeed. But with CyberPanal you can manage SSL, create more websites, change PHP version, access files and much more, so I recommend you to have CyberPanal.
Now you know that we are using CyberPanal to manage OpenLiteSpeed web server. When you install CyberPanal, 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 18.04 or Cent OS 7.x And 5$ DigitalOcean Droplet should be enough to handle a high-traffic WordPress blog.
- Part 1. Create a VPS server
- Part 2. Install CyberPanal
- 3. Create a Website in CyberPanal
- 4. Install WordPress with LSCache
- 5. Enabling LetsEncrypt SSL for Domain and CyberPanal
- 6. Rocking with LSCache
- 7. Restoring old WordPress
- 8. Benchmark CyberPanel
Part 1. Create a VPS server
Free credit active: You have $50 credit! Create CyberPanal Droplet on DigitalPanal
Option 1.1 Create a pre-built CyberPanal image based on Ubuntu 18.04
Log into your DigitalOcean account to any other VPS hosting provide an account. Create a new Droplet and select CyberPanal on ubuntu 18.04 (as shown in the image). When you choose DigitalOcean 1-click CyberPanal, 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 One-time password option.
- Tick Monitoring for better graph data.
- Give your droplet a good name.
Option 1.2 Create a normal VPS server
Part 2. Install CyberPanal
Skip PART 2 if you installed one-click CyberPanal with DigitalOcean Marketplace.
CyberPanal Installation: If you did not installed CyberPanal with DigitalOcean marketplace or using any other VPS (Linode, Vultr), or don’t want to use DigitalOcean marketplace images you can manually install CyberPanal. A fresh Ubuntu 18.04 or CentOS 7.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 CyberPanal, the page will display the version information and command which you can use to show the CyberPanal password. But if you installed plain Ubuntu 18.04/CentOS you can follow the given instruction.
Type the following command to install CyberPanal.
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 CyberPanal.
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.
Visit: https://(YOUR_SERVER_IP):8090 Panel username: example Panel password: example Mysql username: example Mysql password: example
OPTIONAL 2.1. Update CyberPanal and OpenLiteSpeed
Very Important: It will install latest Cyberpanal 1.9.x with stable OpenLiteSpeed version 1.5.x, you can upgrade both with following commands, which is optional.
Update CyberPanal, 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 CyberPanal
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 CyberPanal by typing your IP address followed by :8090
http://0.0.0.0:8090 | replace IP address
2. Enter the username and password which you got earlier.
When using DigitalOcean you can type the following command to get username and password to access CyberPanal. (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 Cyberpanal. This is not a WordPress installation, the WordPress installation will take place after website entry. Login yo CyberPanal 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: www.example.com Email: Your email address will go here Php: PHP 7.3 /* 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).
CyberPanal > 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.
Blog Title: Login User: Login Password: Email: Path: Leave it empty.
5. Enabling LetsEncrypt SSL for Domain and CyberPanal
Point your Domain to the Server IP address. Ensure your DNS is correctly updated using this site. Create a DNS zone with your domain in CyberPanal, you can find that setting on the following link.
Login to the CyberPanal dashboard.
- Go to SSL
- Manage SSL
- Select website
- Click on Issus SSL
If you want to acess the CyberPanal with your Domain name rather than the IP address, go to SSL > Hostname SSL > Issue.
You should be able to access Cyberpanal 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
7. Restoring old WordPress
If you plan to move to CyberPanal 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 CyberPanal 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 CyberPanal will take care of that.
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 CyberPanal, it really amazed me. It comes with website Backup feature and after scheduling for weekly backups I can focus on other things. CyberPanal 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.