How To Install OpenLiteSpeed on Ubuntu 20.04

In this article, we want to teach you How To Install OpenLiteSpeed on Ubuntu 20.04.

OpenLiteSpeed is a high-performance, lightweight, open-source HTTP server that helps your site load faster than ever.

Because it’s developed and maintained by the same team responsible for LiteSpeed Web Server Enterprise, it contains all of the essential features of the enterprise version and the same high-quality coding standard.

How To Install OpenLiteSpeed on Ubuntu 20.04

To install OpenLiteSPeed on your server, you need to log in to your server as a non-root user with sudo privileges and set up a basic firewall. To do this, you can follow our article the Initial Server Setup with Ubuntu 20.04.

Now follow the steps below to set up OpenLiteSpeed on Ubuntu 20.04.

Set up OpenLiteSpeed on Ubuntu 20.04

First, you need to add the OpenLiteSpeed repository to Ubuntu 20.04. To do this, run the following command:

wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash

Then, update your local package index with the command below:

sudo apt update

Next, use the following command to install OpenLiteSpeed:

sudo apt install openlitespeed

Now you need to install PHP and its extensions. Run the following command to install PHP 7.4 and all commonly-used packages for OpenLiteSpeed from LiteSpeed’s Debian Repo:

sudo apt-get install lsphp74

Now start your OpenLiteSpeed service on Ubuntu 20.04 with the command below:

sudo /usr/local/lsws/bin/lswsctrl start
Output
[OK] Send SIGUSR1 to 56832

At this point, you need to set up an administrator user and password to access the OpenLiteSpeed admin console.

To do this, run the following command:

sudo /usr/local/lsws/admin/misc/admpass.sh

You will be asked to specify the user name of the administrator and its password.

When you are done, in your output you will see:

Output
Administrator's username/password is updated successfully!

Access OpenLiteSpeed Admin Console

By default, the OpenLiteSpeed Web admin console listens on port 7080.

First, open the OpenLiteSpeed port through Ubuntu 20.04 firewall with the command below:

sudo ufw allow 7080

Then, you can access the OpenLiteSpeed admin console by typing your server’s IP address in your web browser followed by 7080:

http://your-server-ip:7080

You will see the OpenLiteSpeed login screen.

OpenLiteSpeed login screen

 

Enter the admin username and password that you have provided before and press the Login button To see your OpenLiteSpeed admin dashboard.

OpenLiteSpeed Admin dashboard

Conclusion

At this point, you learn to install OpenLiteSpeed on Ubuntu 20.04 and access your OpenLiteSpeed Admin console.

Hope you enjoy it.

May this article about Install and Configure OpenLiteSpeed on AlmaLinux 8 be useful for you.

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Stay informed and not overwhelmed, subscribe now!