How to run OpenLiteSpeed ​​Web Server on Rocky Linux 8 and AlmaLinux 8


This tutorial is for How to Run OpenLiteSpeed ​​Web Server on Rocky Linux 8 and AlmaLinux 8. We will do our best to make sure you understand this guide. I hope you will like this blog How to run OpenLiteSpeed ​​Web Server on Rocky Linux 8 and AlmaLinux 8. If your answer is yes, please share after reading this.

Check out how to run OpenLiteSpeed ​​web server on Rocky Linux 8 and AlmaLinux 8

OpenLiteSpeed ​​is a free, open source web server that you can use to run and serve sites. It offers a lot of special features to make your experience more consistent, for example custom PHP handling with smooth guidelines on how best to use it or admin interfaces that will let you manage all parts of the updates. site in one place without having to manipulate many scripts. scattered in better places in town.

It is a multistage web server that works admirably with all operating systems and stands out with its lightning-fast speeds. You can use, modify or even reassign OpenLiteSpeed ​​in LGPL authorization details. Moreover, you can easily find the support of different users on the message sheets as it has been around for over ten years.


  • Rocky Linux 8 server
  • User account with sudo privileges
  • Strong internet connection


  • Update our system
  • Add OpenLiteSpeed ​​to Rocky Linux 8 to the repository
  • Install OpenLiteSpeed ​​on Rocky Linux
  • Install PHP
  • Install and configure MySQL
  • Configure OpenLiteSpeed ​​login administrator credentials
  • Try OpenLiteSpeed

Similar Items

  • How to install aapanel 6 on Fedora 34

Update Rocky Linux repositories

We need to update our system first so that our repositories are up to date. It is the first step every time you install on your system. Write the following command in our terminal.

$ sudo dnf update -y

Once the update is complete, add OpenLiteSpeed ​​to the repository.

Add OpenLiteSpeed ​​to the EPEL repository

To add OpenLiteSpeed ​​to our repository on Rocky 8 Linux, type the following into our terminal;

$ sudo dnf install epel-release

Sample output

…. Performing Transaction Verification The transaction verification was successful. Running the transaction test The transaction test was successful. Transaction in progress Preparation: 1/1 Installation: epel-release-8-13.el8.noarch 1/1 Running the scriptlet: epel-release-8-13.el8.noarch 1/1 Verification: epel-release-8- 13. el8.noarch 1/1 installed: epel-release-8-13.el8.noarch finished!

Add OpenLiteSpeed ​​to our repository

$ sudo rpm -Uvh

Retrieved from

Verification … ################################ [100%]

Preparing… ################################## [100%]

Update / installation …

1: litespeed-repo-1.2-1.el8 ############################## [100%]

Install OpenLiteSpeed ​​on Rocky Linux / AlmaLinux

Now that we have added the OpenLiteSpeed ​​repository to our system, we can now install OpenLiteSpeed ​​with the following command:

$ sudo dnf install openlitespeed

Once the installation is complete, check the status of the OpenLiteSpeed ​​server with the following command;

$ # sudo systemctl status lsws ●

lshttpd.service – OpenLiteSpeed ​​HTTP Server

Loaded: loaded (/usr/lib/systemd/system/lshttpd.service; enabled; predefined provider: disabled)

Active: active (running) from Friday 2021-11-12 12:22:52 UTC; 1min 41s ago

Process: 63411 ExecStart = / usr / local / lsws / bin / lswsctrl start (code = exited, status = 0 / SUCCESS)

Main PID: 63435 (light speed)

Group C: /system.slice/lshttpd.service

├─63435 openlitespeed (lshttpd – main)

├─63439 openlitespeed (lscgid)

└─63452 openlitespeed (lshttpd – # 01)

Nov 12, 12:22:49 PM rockylinux systemd[1]: Starting the OpenLiteSpeed ​​HTTP server…

Nov 12, 12:22 p.m. Rockylinux lswsctrl[63411]: [OK] light speed: pid = 63435.

12 Nov 12:22:52 rockylinux systemd[1]: The OpenLiteSpeed ​​HTTP server has started.

It should show the status as active so that we can continue with this tutorial. Otherwise, start your server first with the following command

$ / usr / local / lsws / bin / lswsctrl start.

Install PHP for OpenLiteSpeed

PHP is not integrated with OpenLiteSpeed ​​as it is with Apache. OpenLiteSpeed ​​delegates the execution of PHP to external PHP executables. This will allow better security, stability and management of multiple connections. Start the installation of PHP74 with the following command.

$ sudo dnf -y install lsphp74 lsphp74-common lsphp74-mysqlnd lsphp74-gd lsphp74-process lsphp74-mbstring lsphp74-xml lsphp74-mcrypt lsphp74-pdo lsphp74-imap lsphthp74-soap

Once the installation of PHP74 is complete, we can now move on to the installation of the MySQL server

Install the MySQL server

You can run the following command to install the MySQL server

$ sudo dnf install mysql mysql-server

Run the secure installation script to secure MyQL, but you need to start the mysqld service first;

$ sudo systemctl start mysqld

$ sudo systemctl activate mysqld

Check the status now with the following command;

$ sudo systemctl status mysqld

Sample output

● mysqld.service: MySQL 8.0 database server

Loaded: Loaded (/usr/lib/systemd/system/mysqld.service; Enabled; Provider Preset: Disabled)

Active: active (running) from Friday 2021-11-12 12:56:55 UTC; 2min 48s ago

Main PID: 66270 (mysqld)

Status: “The server is operational”

Tasks: 37 (limit: 11189)

Memory: 458.0M

Group C: /system.slice/mysqld.service

└─66270 / usr / libexec / mysqld –basedir = / usr

Nov 12, 12:56:47 PM Rockylinux systemd[1]: Starting the MySQL 8.0 database server…

Nov 12, 12:56:47 PM rockylinux mysql-prepare-db-dir[66189]: Initialization of the MySQL database

Nov 12, 12:56:55 PM rockylinux systemd[1]: MySQL 8.0 database server started.

Now is the time to run our secure installation, follow these steps:

$ sudo mysql_secure_installation

To connect easily to the system, it is preferable not to set the validation password. Type N and the following instructions may type Y to allow the installation to continue. Once done, we can now move on to the configuration of the OpenLiteSpeed ​​admin panel.

Configure the OpenLiteSpeed ​​administration panel

To change the default password in the OpenLiteSpeed ​​panel, we need to run the following command;

$ /usr/local/lsws/admin/misc/

Sample output

# Specify the administrator user name.

This is the username required to log in to the administrative web interface.

username [admin]: administrator

Specify the administrator password.

This is the password required to log in to the administration web interface. Password:

Retype the password:

The administrator username / password has been updated successfully.

We have successfully added the administrator, now it is good that we configure the firewall to allow OpenLiteSpeed ​​to work properly.

Configure firewall settings

OpenLiteSpeed ​​listens on ports 8088 and 7080, so we need to allow access to those ports. To do this, we can proceed as follows;

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

Do the same for port 7080

$ firewall-cmd –zone = public –permanent –add-port = 7080 / tcp

Then you must reload the system for the changes to take effect.

$ sudo firewall-cmd – reload

If you are having trouble with the following, make sure firewalld is up and running. Run the following command to activate it.

$ systemctl enable – now firewalld

Finally, we can test our OpenLiteSpeed ​​to see if it works with the following in your preferred browser;

http: //

To access the admin site we need to use port 7080 like this

http: //

Final words: How to run OpenLiteSpeed ​​web server on Rocky Linux 8 and AlmaLinux 8

hope you will understand this item How to run OpenLiteSpeed ​​Web Server on Rocky Linux 8 and AlmaLinux 8, if your answer is no, you can request anything through the contact forum section linked to this article. And if your answer is yes, then share this article with your family and friends.


About Author

Comments are closed.