How To Install OpenLiteSpeed on Ubuntu 20.04

OpenLiteSpeed is an open source version of LiteSpeed based on the Web Server Enterprise. Both servers are actively developed and maintained by the same team and adhere to the same high quality coding standard. OpenLiteSpeed contains all the core features of LiteSpeed Enterprise and reflects our commitment to supporting the Open Source community.

Installing the Required Packages

It is important to install all packages and dependencies that are essential for OpenLiteSpeed to run on your server. To do this, you need the necessary set:

apt-get install build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev

PHP is essential for OpenLiteSpeed to work, so you should install PHP and other dependencies. You can do it like this:

apt-get install php php-common php-curl php-mysql php-opcache php-imap php-opcache 

Then direct the MySQL installation.

apt-get install mysql

Installing OpenLiteSpeed

With wget, you need to download the OpenLiteSpeed repository script. To do this, you should enter the following command:


After you have successfully loaded the script, you need to run it. You can use bash


This script will allow you to download the repository files and thereby automatically update your server. You will then have the option to install OpenLiteSpeed. Run the following program:

apt-get install openlitespeed

Then, run OpenLiteSpeed (lsws)

systemctl start lsws

Setting up OpenLiteSpeed

After you have finished installing your Openlitespeed and other dependencies, then you should run a new administrator user and password on your server by running the administrative script.

bash /usr/local/lsws/admin/misc/

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.

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

This will help you provide access to your OpenliteSpeed, and then you should check it out. You will be able to navigate to the next address using port 8088.


Was this article helpful?

Related Articles

Leave A Comment?