Install WordPress with CyberPanel 1.9 OpenLiteSpeed 1.5.7, and LSCache

In the end, you’ll have a Wordpress website powered by OpenLiteSpeed 1.5.6, optimized with LSCache, managed by CyberPanal 1.9 and secured by Let’sEncrypt SSL.

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.

Prerequisites

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.

That’s it.

Part 1. Create a VPS server

Free credit active: You have $50 credit! Create CyberPanal Droplet on DigitalPanal

Part 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. So I recommend using DigitalOcean’s VPS.

https://cloud.digitalocean.com/droplets/new?image=cyberpanel-18-04#choose-droplet-size
Select MarckerPlace > CyberPanal

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.

Part 1.2 Create a normal VPS server

Remember to choose Ubuntu 18.04 or centOs 7.x when creating a VPS server.

Part 2. Install CyberPanal

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.

Skip PART 2 if you installed one-click CyberPanal with DigitalOcean Marketplace.

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 > y – y – y – y – y

The process takes at least 6 minutes to complete. Once done, the end result will have login details in this format.

Visit: https://(YOUR_SERVER_IP):8090                     
Panel username: example
Panel password: example
Mysql username: example
Mysql password: example

Update CyberPanal and OpenLiteSpeed

Very Important: It will install Cyberpanal 1.8 with OpenLiteSpeed version 1.4.x, you can upgrade both with following commands.

This image has an empty alt attribute; its file name is Putty-SSH.png

To update CyberPanal, open an SSH connection and type. Use PUTTY to open SSH connection.

cd
rm -f upgrade.py
wget http://cyberpanel.net/upgrade.py
python upgrade.py

Update OpenLiteSpeed 1.4.x > 1.5.6

To update OPenlitespeed, open an SSH connection and type.

apt-get update && apt-get -y upgrade

It will update OpenLiteSpeed to the latest stable version, which is 1.5.6 at this time.

OPTIONAL However, if you’re willing to test out the cutting-edge version you can type the following command.


wget https://openlitespeed.org/packages/openlitespeed-1.6.1.tgz

tar -xvzf openlitespeed-1.6.1.tgz

cd openlitespeed
sudo ./configure
sudo make
sudo make install

I was unable to mannully update using these commands, help me out if you know about it. I recommand you to stay with the stable version.

Part 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.

Part 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)

https://IP-ADDRESS:8090/websites/exmaple.com/wordpressInstall

Fill the details.

Blog Title:
Login User:
Login Password:
Email:
Path: Leave it empty.

Part 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.

http://IP-ADDRESS:8090/dns/createDNSZone

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.

https://example.com:8090

Part 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

Part 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.

Part 8. Benchmark

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 Postpage

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.

Conclusion.

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.

Leave a Reply

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

You May Also Like