How to Install OpenLiteSpeed on CentOS 7

r00t September 5, 2017

Install OpenLiteSpeed on CentOS 7

In this tutorial we’ll learn how to install OpenLiteSpeed on CentOS 7. We will also install and configure its prerequisites. OpenLiteSpeed is a high-performance, resource-conserving open-source alternative to Apache2 and Nginx. The HTTP server has already shown in many independent tests that it can be quite faster than Apache and Nginx. In addition, it is very easy to use, so the configuration of the vHosts and the port assignments take place via a dedicated web interface.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install OpenLiteSpeed on CentOS 7

Step 1. First, ensure your system is fully up-to-date by running the following:

yum -y update

Step 2. Installing OpenLiteSpeed.

OpenLiteSpeed is not available in CentOS 7 software repositories, so you have to add the OpenLiteSpeed repository:

rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm

Now install OpenLiteSpeed with this simple yum command:

yum -y install openlitespeed

Once installed, you can start and confirm the OpenLiteSpeed version by running:

/usr/local/lsws/bin/lswsctrl start
/usr/local/lsws/bin/lshttpd -v

Step 3. Configuring Firewall for OpenLiteSpeed.

By default, OpenLiteSpeed listens on port 8088. So, you need to add firewall rules to allow port 8088 for accessing the web server:

firewall-cmd --zone=public --permanent --add-port=8088/tcp
firewall-cmd --reload

Step 4. Access OpenLiteSpeed.

OpenLiteSpeed will be available on HTTP port 8088 by default and admin login using port 8088. Open your web browser and navigate to http://your-domain-name.com:8080, you will see the default OpenLiteSpeed web page.

Congratulation’s! You have successfully install and configured OpenLiteSpeed on your CentOS 7 server. Thanks for using this tutorial for installing OpenLiteSpeed on CentOS 7 system.

Save

The Tags:

Leave a Comment

Comments are closed.