How to install OpenLiteSpeed in CentOS 7

by Daniel Pham
Published: Updated:

How to install OpenLiteSpeed ​​in CentOS 7? In this article, I will guide you step by step to install the OpenLiteSpeed ​​web server in CentOS 7.

OpenLiteSpeed ​​emerged as the fastest and most powerful web server available today, with many reviews showing that it is even faster than Nginx.

You can learn more about it at the homepage. Although it looks faster than Nginx, Nginx is still a highly stable web server, which is also an important factor.

Prepare before installing OpenLiteSpeed

First of all, my server is running CentOS Linux release 7.6.1810 (Core) operating system. You need to follow the installation steps below with the root user.

Update the operating system.

[root@centos ~]# yum update -y

Install EPEL repository.

[root@centos ~]# yum install epel-release -y

Install OpenLiteSpeed in CentOS 7

By default, OpenLiteSpeed ​​supports you 4 ways to install it. In this article, I choose to install it through the repository.

This is the easiest and safest way to install.

Add OpenLiteSpeed ​​repository.

[root@centos ~]# rpm -ivh

Install OpenListeSpeed web server package.

[root@centos ~]# yum install openlitespeed -y

Install PHP for the web server. By default, following the instructions of OpenLiteSpeed, we will install PHP-5.6. This is also a popular version.

[root@centos ~]# yum install lsphp56 lsphp56-common lsphp56-mysql lsphp56-gd lsphp56-process lsphp56-mbstring lsphp56-xml lsphp56-mcrypt lsphp56-pdo lsphp56-imap lsphp56-soap lsphp56-bcmath -y

Start the OpenLiteSpeed ​​service

After installation is complete, OpenLiteSpeed ​​will be in the directory /usr/local/lsws.

You use the following command to start its service.

[root@centos ~]# /usr/local/lsws/bin/lswsctrl start

And you can use the following command to check if the service is running.

[root@centos ~]# /usr/local/lsws/bin/lswsctrl status

Or stop it.

[root@centos ~]# /usr/local/lsws/bin/lswsctrl stop

Open the port on Firewalld

OpenLiteSpeed ​​will run on 2 ports.

Port 8088 displays the default web server interface

[root@centos ~]# firewall-cmd --permanent --add-port=8088/tcp
[root@centos ~]# firewall-cmd --reload

Port 7080 to enter the admin admin window of the web server.

[root@centos ~]# firewall-cmd --permanent --add-port=7080/tcp
[root@centos ~]# firewall-cmd --reload

Access the OpenLiteSpeed ​​admin window

Now open your browser and type https://yourserverip:7080. For example, in my demo, the server has ip Access URL is

The default username and password is admin / 123456.

After you access, the admin interface will look like the image below.

How to install OpenLiteSpeed in CentOS 7


OpenLiteSpeed ​​is a powerful web server, worth checking out. However, to use it in a large-scale production environment, we need to consider its stability.

(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).

0 0 votes
Article Rating

You may also like

Notify of
Inline Feedbacks
View all comments

DevOps Lite is a personal blog specializing in technology with main topics about DevOps, DevSecOps, SRE and System Administrator. Articles are shared for free and contributed to the community.



Subscribe my Newsletter for new blog posts. Stay updated from your inbox!

© 2021-2024 – All rights reserved.

Please write sources “” when using articles from this website.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Would love your thoughts, please comment.x

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.