HugeServer Knowledgebase

How to install OpenLiteSpeed web server with PHP 7.1 on Ubuntu 16.04


OpenLiteSpeed is a High-Performance, Light-Weight, and Open-Source HTTP Server which is developed by the LightSpeed Technologies. OpenLiteSpeed comes with a Web-Based GUI for the administration which makes everything easier. OpenLiteSpeed is capable of handling hundred thousands of concurrent connections with low resource usage.
Below are some of the main benefits of using OpenLiteSpeed:

  • High performance, event-driven architecture.
  • Super light-weight, minimal CPU, and memory footprint.
  • Apache-compatible rewrite rules.
  • User-friendly WebAdmin GUI.

OpenLiteSpeed Logo

Install OpenLiteSpeed

For installing OpenLiteSpeed we need to add its official repository with the following command:

wget -O - | bash

Now you can install OpenLiteSpeed easily using “apt”:

apt-get install openlitespeed

After the installation process is finished, you can start and control your OpenLiteSpeed service using the “systemctl” command:

systemctl start lsws

systemctl status lsws

You can verify that your OpenLiteSpeed is up and running with the following command:

netstat -antelope | grep openlitespeed

Install PHP 7.1 (OpenLiteSpeed Version)

In this section, we are going to install PHP 7.1. OpenLiteSpeed provide its own PHP packages named “lsphp” or “PHP LSAPI” (LiteSpeed Server Application Programming Interface).
LSAPI is an interface between PHP and LiteSpeed designed for high performance, You can install it easily with the following command:

apt-get install lsphp71 lsphp71-common lsphp71-mysql lsphp71-dev lsphp71-curl lsphp70-dbg

Configuring Web-Based GUI

In order to activate the web UI we need to create an admin user, the following command will initiate a script which starts the process of creating an admin user:

sh /usr/local/lsws/admin/misc/

After that, you can visit your admin panel and start configuring OpenLiteSpeed using the following address:


You can check out OpenLiteSpeed official Github to get more information about releases!

Was this tutorial helpful?

Thank you for your vote.Thank you for your vote.

Similar Posts

One thought on “How to install OpenLiteSpeed web server with PHP 7.1 on Ubuntu 16.04”

Leave a Reply

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