OpenLiteSpeed is a high-performance, lightweight, open-source HTTP server developed and copyrighted by LiteSpeed Technologies, Inc. Users are free to download, use, distribute, and modify OpenLiteSpeed and its source code in accordance with the precepts of the GPL version 3 license. LiteSpeed Web Server is the company's core product, a lightweight proprietary web server, which is able to read Apache configurations directly. The software is commonly used together with web hosting control panels, where it replaces Apache as the webserver. It is available for Linux, OS X, Solaris, and FreeBSD. The last stable release was 5.0 which was released in April 2015. The LiteSpeed Web Server supports both SPDY/3.1 and the new HTTP/2 network protocols.
Install OpenLiteSpeed on Ubuntu 16.04
First, make sure that all your system packages are up-to-date by running the following apt-get commands(basic linux commands list) in the terminal.
Preparing your server, you need to install the following packages:
sudo apt-get update sudo apt-get upgrade
apt-get install build-essential libexpat1-dev libgeoip-dev libpng-dev libpcre3-dev libssl-dev libxml2-dev rcs zlib1g-dev
Unpack the OpenLitespeed archive to the document root directory on your VPS server:
tar xzvf openlitespeed* cd openlitespeed*
Then use the following command to configure the software and to compile it, This will install the entire OpenLiteSpeed system under the /usr/local/lsws location:
sudo ./configure sudo make sudo make install
Configuring MariaDB for OpenLiteSpeed.
By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. You should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.
Configure it like this:
- Set root password? [Y/n] y - 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
Configure OpenLiteSpeed web server.
OpenLiteSpeed has an Admin Gui for management, so we will configure the admin password for the openLiteSpeed GUI, We will start by changing the administrative password using the following command:
You will be asked to optionally provide a username for the administrative user. If you just press ENTER, the username “admin” will be selected. Afterward, you will be asked to select and confirm a new password(Password Security Guide) for the account. After changing the password and the username use the following command to start the webserver:
sudo service lsws start
OpenLiteSpeed will be available on HTTP port 8080 by default and admin login using port 7080. Open your favorite browser and navigate to http://yourdomain.com:8080 or https://server-ip:7080 and complete the required steps to finish the installation. If you are using a firewall, please open ports 7080 and 8080 to enable access to the control panel. Congratulations! You have successfully installed OpenLiteSpeed.