Install OpenLiteSpeed on Ubuntu 17.04 / 1710

This brief tutorial shows students and new users how to install OpenLiteSpeed on Ubuntu 17.04 | 17.10. For those who don’t know, OpenLiteSpeed is an open source web server developed by LiteSpeed Technology. It’s designed to be lightweight with a user friendly web interface to create and manage your websites.

OpenLiteSpeed supports various operating systems including Linux, SunOS, MacOS and others. Because of its user friendly interface, it’s becoming popular among webmasters.

This tutorial should probably also works with previous versions of Ubuntu, but I haven’t tested. To get started, continue below with the steps.

Step 1: Update Ubuntu

Before installing OpenLiteSpeed update Ubuntu server. To do that, run the commands below.

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove

Step 2: Install OpenLiteSpeed Dependencies

Another thing to do before installing OpenLiteSpeed is to install required dependencies. These packages allow the webserver to install and function correctly. To install these dependencies, run the commands below.

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

Step 3: Download OpenLiteSpeed Package

Now that all dependencies are installed, go and fetch the latest version of OpenLiteSpeed.

cd /tmp/ && wget

Step 4: Install OpenLiteSpeed

Next, run the commands below to extract the downloaded package.

tar -xvzf openlitespeed-1.4.27.tgz

Change into the directory extracted directory

cd openlitespeed-1.4.27/

Then run the commands below to install

sudo ./configure
sudo make
sudo make install

After that OpenLiteSpeed should be installed.

Step 5: Install MariaDB Server

To install MariaDB server run the commands below.

sudo apt-get install mariadb-server mariadb-client

After installing, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.

sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

After that, run the commands below to secure MariaDB server.

sudo mysql_secure_installation

When prompted, answer the questions below by following the guide.

  • Enter current password for root (enter for none): Just press the Enter
  • Set root password? [Y/n]: Y
  • New password: Enter password
  • Re-enter new password: Repeat password
  • Remove anonymous users? [Y/n]: Y
  • Disallow root login remotely? [Y/n]: Y
  • Remove test database and access to it? [Y/n]:  Y
  • Reload privilege tables now? [Y/n]:  Y

Restart MariaDB server

sudo systemctl restart mariadb.service

Step 6: Configure OpenLiteSpeed

Finally, configure the administrative password for the web interface. Run the commands below to do that.

sudo /usr/local/lsws/admin/misc/

Then create a web admin username and password.

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

User name [admin]: openlite

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

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

After that, run the commands below to start the webserver.

sudo /etc/init.d/lsws start

Open your browser and browse to the server IP or hostname followed by 8088 to view the default page page.

To access the admin backend portal, use the port 7078
openlitespeed ubuntu

Begin creating your sites.

openlitespeed admin portal


Congratulations! You’ve successfully installed OpenLiteSpeed web server.

You may also like the post below:

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.