How to Install OpenLiteSpeed on Ubuntu 20.04

Install OpenLiteSpeed on Ubuntu 20.04

In this article, we will have explained the necessary steps to install OpenLiteSpeed on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

OpenLiteSpeed is a lightweight and open-source version of the LiteSpeed Server developed by LiteSpeed Technologies. OpenLiteSpeed combines speed, security, scalability, optimization, and simplicity in one friendly open-source package.

Install OpenLiteSpeed on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install OpenLiteSpeed on Ubuntu.

Installing OpenLiteSpeed on your Ubuntu Linux system is straightforward, Now we Run the following command to download the OpenLiteSpeed repository shell script:

wget http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh

Once completed, install OpenLiteSpeed using the APT package manager as shown:

sudo bash enable_lst_debian_repo.sh
sudo apt install openlitespeed

After OpenLiteSpeed package installation is finished, you must start the OpenLiteSpeed service in order to begin managing your web server:

sudo systemctl start lsws

Step 3. Set OpenLiteSpeed Admin Password.

Now generate an administrative password of OpenLiteSpeed if you want to access the OpenLiteSpeed control panel:

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

Output:

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]: 

Please specify the administrator's password.
This is the password required to login the administration Web interface.

Password: 
Retype password: 
Administrator's username/password is updated successfully!

Step 4. Configuring Firewall.

Run the following command to open the ports that OpenLiteSpeed listens on:

sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw allow 7080/tcp
sudo ufw allow 8088/tcp

Step 5. Accessing OpenLiteSpeed Web UI.

Finally, open your web browser and type the URL https://your-server-ip:7080. You will be redirected to the following page:

Install OpenLiteSpeed on Ubuntu 20.04

You will be required to enter the username and password created in Step 3 of this guide.

That’s all you need to do to install OpenLiteSpeed on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on the Install OpenLiteSpeed web server, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.