How to install the OpenLiteSpeed ​​web server on AlmaLinux 8 / Rocky Linux 8


Steps to download, install, configure, set up and run the OpenLiteSpeed ​​web server on Rocky Linux 8 and AlmaLinux 8 using the command terminal

OpenLiteSpeed is an open source HTTP server version of the Paid LightSpeed ​​Web Server developed and owned by LiteSpeed ​​Technologies. Although it is new to the powerful Apache web server, it is however popular for its high performance, light weight and extreme speed. The loading time with Openlitespeed is a bit better than with Nginx. You also don’t need an additional module here, Openlitespeed is almost ready to go. Moreover, it provides a GUI dashboard to easily manage virtual hosts, modules and web servers.

We don’t need any additional plugins in WordPress to shrink, cache, compress, and convert while using OpenLiteSpeed. Even the delivery of WebP directly through the web server.

Well, its paid version known as LiteSpeed ​​Web Server Enterprise Edition (LSWS) is designed to meet the demand for professional web hosting by delivering the fastest possible performance to multiple websites.

However, the open source version we’ll be installing here is similar to the company but lacks a few third-party plugins to ensure compatibility with cPanel, Plesk, and other control panels. In addition, the enterprise version offers a more powerful cache engine, full Apache compatibility, and commercial support.

Steps to install OpenLiteSpeed ​​on Rocky Linux 8 / Almalinux 8

The steps given here can also be used for other RHEL 8 based Linux systems such as Oracle 8, CentOS 8 and others.

1. Add the Linux OpenLiteSpeed ​​repository

Unlike Apache HTTPd, the packages to install OpenLiteSpeed ​​are not available in the default repository of Rocky or AlmaLinux 8. Therefore, we have to add it manually using the command below.

sudo rpm -Uvh

2. Activate the Epel repository

There are a few packages required by OpenLiteSpeed ​​available through the Extra Enterprise repository. Therefore, activate the same.

sudo dnf install epel-release

3. Run the Rocky or AlmaLinux update command

To ensure that the system can successfully recognize the packages available in the newly added repositories.

sudo dnf update

Note: If you receive a warning:

Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/litespeed.repo; 
Configuration: OptionBinding with id "failovermethod" does not exist

Then to remove it just edit the repository added by LightSpeed.

sudo nano /etc/yum.repos.d/litespeed.repo

And add # in front of each line with “failover method“.

4. Command to install OpenLiteSpeed ​​Almalinux or Rocky 8

Finally, we have everything we need to install and configure the OpenLiteSpeed ​​web server on your functional Rocky Linux 8 or AlmaLinux 8 server using the DNF package manager.

sudo dnf install openlitespeed

command to install openspeedlite almalinux 8

5. Install PHP for OpenLiteSpeed

According to your requirement, go for the last one PHP 8.0 or the earliest PHP 7.4. We have mentioned the commands for both, use one of the commands given.

For PHP 7.4

sudo dnf install lsphp74 lsphp74-mysqlnd lsphp74-process lsphp74-bcmath lsphp74-pdo 
lsphp74-common lsphp74-xml lsphp74-mbstring lsphp74-mcrypt 
lsphp74-soap lsphp74-gd lsphp74-opcache

Install PHP 7.4 for LiteSPeed web server

For PHP 8.0

sudo dnf install lsphp80 lsphp80-mysqlnd lsphp80-process lsphp80-bcmath lsphp80-pdo 
lsphp80-common lsphp80-xml lsphp80-mbstring lsphp80-gd lsphp80-opcache lsphp80-soap

Install PHP 8.0 OpenSpeeLite web server

6. Check the status of the web server

To confirm that the web server’s OpenLiteSpeed ​​service is active and functioning properly, run the status commands:

sudo systemctl status lsws

Anecdotes: TO Stop and reboot the command are:

sudo systemctl stop lsws
sudo systemctl start lsws
sudo systemctl restart lsws

7. Open the required ports in the firewall

Apart from 80/443 for websites / webpages, we also need 8088 & 7080 ports to access the web interface to manage OpenLiteSpeed ​​from the browser.

sudo firewall-cmd --zone=public --permanent --add-port={80/tcp,443/tcp,8088/tcp,7080/tcp}
sudo firewall-cmd --reload

8. Create an administrator password

By default, the OpenLiteSpeed ​​web server administrator the web console will use a common username and password. To change it and set something strong and easily remembered, run the following command:

sudo /usr/local/lsws/admin/misc/

Set the OpenSpeed ​​Lite administrator password

9. Access the OpenLiteSpeed ​​web interface – Demo and administrator

There are two web interfaces provided by this open source web server, one for accessing the Demo page to check the PHP version, CGI and other things are working fine. And the other is Administrator Dashboard to manage virtual host, PHP and other settings.

For the demo page:


OpenLiteSpeed ​​demo page

For the Administrator page:


OpenLiteSpeed ​​administration page

Web server GUI administration page


So these are the simple steps to get, configure, set up and run the OpenLiteSpeed ​​web server on Rocky Linux 8 and AlmaLinux 8 using the command terminal.

Other articles:

• How to install Apache, MySQL and PHP on AlmaLinux 8
• Install security patches or updates automatically on Rocky or AlmaLinux
• How to install Podman on Rocky / AlmaLinux 8
• How to install Apache on Almalinux 8 / Rocky

Source link


About Author

Comments are closed.