How to install OpenLiteSpeed on an Ubuntu 18.04 VPS or Dedicated Server

How to install OpenLiteSpeed on an Ubuntu 18.04 VPS or Dedicated Server

Introduction

OpenLiteSpeed is a lightweight, high performing open source web server developed, copyrighted and maintained by LiteSpeed Technologies. It has a remarkable web-based GUI for administration.

It runs fewer processes, easily handles thousands of concurrent connections on low resource usage i.e. RAM and CPU, highly scalable – runs so many virtual hosts i.e. hosts many different websites on one web server, has less overhead and highly optimized to run all kinds of scripts e.g. PHP, Java, Ruby, Perl, e.t.c. In regards to WordPress platform, it’s mostly used in the LiteSpeed Cache for WordPress plugin which accelerates WordPress hosting platform.

LiteSpeed is available as the free open source OpenLiteSpeed and the paid LiteSpeed Enterprise. OpenLiteSpeed contains all essential features if the Enterprise.

In this article, we illustrate how to install OpenLiteSpeed Web Server on Ubuntu 18.04 Linux VPS.

Pre-requisites

  • Fresh Install Ubuntu 18.04
  • Basic understanding of Linux commands
  • A non-root user with sudo privileges

Update the system packages

$ sudo apt-get update

Install OpenLiteSpeed dependencies

$ sudo apt-get install -y build-essential
$ sudo apt-get install -y rcs libpcre3-dev libexpat1-dev libssl-dev libgeoip-dev libudns-dev zlib1g-dev libxml2 libxml2-dev libpng-dev openssl

Install OpenLiteSpeed

There are 3 ways of installing OpenLiteSpeed.

  1. Install from source code
  2. Install from LiteSpeed Repo
  3. Install from script

In this demonstration, we shall install from source code to ensure we install the latest version of Litespeed (at the time of the publication it’s 1.4.34).

Visit OpenLiteSpeed Downloads Page and download the Current Stable Edition 1.4.34 as follows:

$ wget https://openlitespeed.org/packages/openlitespeed-1.4.34.tgz

Unpack/Decompress the downloaded file.

$ tar -xzvf openlitespeed-1.4.34.tgz

Change into the installation directory, compile and install the package with sudo privileges or as the root user.

$ cd openlitespeed-1.4.34/
$ sudo ./configure
$ sudo make && sudo make install

OpenLiteSpeed will be automatically installed in >/usr/local/lsws directory

Configure OpenLiteSpeed

Configure the administrative password for OpenLiteSpeed web server.

$ sudo /usr/local/lsws/admin/misc/admpass.sh
Please specify the user name of administrator.
This is the user name required to login the administration Web interface.
User name [admin]: liteadmin
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!

Start OpenLiteSpeed web server

$ sudo /etc/init.d/lsws start

OR

$ sudo /usr/local/lsws/bin/lswsctrl start

Access Web Server

By default, OpenLiteSpeed web server will be available on HTTP Port 8088 while the administrative WebAdmin console will be available on Port 7080. If you have firewall UFW enabled, you need to open the respective ports for access.

Configure Firewall for Port Access

Add the firewall rules

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

ReloAd ufw to effect the changes

$ sudo ufw reload

To confirm that the ports have been opened on the firewall, check the status of ufw.

$ sudo ufw status

Once the firewall has given access to those two ports, then you can access the web server.

Go to http://your-domain.com:8088 or http://server-ipaddress:8088

In our case, it’s http://35.192.152.126:8088/ as shown below

For the Webadmin Console

Go to https://your-domain.com:7080 or https://server-ipaddress:7080

In our case it’s https://35.192.152.126:7080/ as shown below

“Your connection is not secure” error since the browser does not recognize the site’s ssl certificate as it was automatically generated and self-signed by the Linux server during the web server installation.

Ignore that error and Click Advanced, then Click Add Exception as shown below:

“Add Security Exception” Tab pops up. Click Confirm Security Exception

Finally, the login page appears as shown below:

Enter the admin logins you had created during the Litespeed configuration. Then you’ll have an admin dashboard as shown below:

Conclusion

With a functional OpenLiteSpeed web server, it’s now ready for set up of all kinds of website CMS platforms from WordPress, Joomla, Drupal and web application frameworks.

In addition, LiteSpeed features Apache compatible rewrite rules which allow you to easily migrate/convert your Apache web server into a Litespeed web server.

Check out these top 3 Dedicated server hosting services:

Hostinger
$2.99 /mo
Starting price
Visit Hostinger
Rating based on expert review
  • User Friendly
    4.7
  • Support
    4.7
  • Features
    4.8
  • Reliability
    4.8
  • Pricing
    4.7
IONOS
$1.00 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
Ultahost
$2.90 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8

How to install Litespeed Web Server on Centos 7 VPS or Dedicated Server

OpenLiteSpeed is an open source web server characterized by high-performance, li
3 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How to Host Multiple Websites on an Ubuntu 18.04 VPS or Dedicated Server

This article will show you how to host two or more websites on a single Virtual
5 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install Apache Cassandra on an Ubuntu 18.04 VPS or Dedicated Server

This tutorial will help you install and configure Apache Cassandra (an opensourc
3 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How to Install a Let’s Encrypt Certificate on your Ubuntu 18.04 Dedicated Server or VPS

If you are hosting your website on a VPS server running Ubuntu 18.04, we will sh
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top