How to install LiteSpeed Web Server on Ubuntu

LiteSpeed Web Server is a high-performance, commercial web server software. Litespeed web server conserves resources without sacrificing its speed, and compatibility.

It can handle many simultaneous connections, advanced caching with LiteSpeed Cache (LSCache), built-in security features like web application firewall (WAF), and SSL/TLS support. It is also compatible with PHP, MySQL, and popular CMS platforms like WordPress. LiteSpeed web server has a user-friendly Web Admin Console, one-click installation available from many hosting providers.  

Here is your step-by-step guide to install LiteSpeed on Ubuntu.

1. Log in to the Ubuntu terminal with your username and password.

 

Command: sudo apt update

 

 

 

Command: sudo apt upgrade

 

Command: sudo wget -O – https://repo.litespeed.sh | sudo bash

 

 

Command: sudo apt update

 

 

Command: sudo apt install openlitespeed lsphp81

 

 

2. Setting the administrative password.

The command below will set or update the administrator password for LiteSpeed webserver’s Web Admin console.

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

 

3. Connecting to the server.

The command below will check the status of LiteSpeed web server.

Command: sudo systemctl status lsws

After running this command, you can see the OpenLiteSpeed web server is active(running) in green color.

 

If the OpenLiteSpeed web server does not start automatically, you can start it by running the below command:

Command: sudo systemctl start lsws

 

4. Open ports on firewall.

It can be achieved by running the below command.

Command: sudo ufw allow 8088,7080,443,80/tcp

 

 

The first port 8088 is the default port of LiteSpeed web server. It should now be accessible to the public.

Navigate to https://server_ip_address:8088

 

 

5. Changing the port for the default page.

 

https://server_ip:7080

Click on Advanced.

 

Click on Proceed to xxx.xx.x.x (unsafe)

 

 

 

In the left pane, click on Listeners. In the center pane, select view image as shown below.

 

 

Click on edit image.

 

In Port field, change the port from 8088 to 8080. Click on save image.

 

 

Now click on Graceful restart button (green color).

 

Click on Go to restart OpenLiteSpeed web server.

 

 

Congratulations, you have successfully installed your Litespeed web server on Ubuntu!

Have additional questions? Search below: