How to install OpenLiteSpeed ​​Web Server on Rocky Linux 8

OpenLiteSpeed ​​is a fast open source web server application that comes with a fast PHP module built in.

This tutorial will show you how to install and configure OpenLiteSpeed ​​on Rocky Linux 8 and CentOS 8.

To install OpenLiteSpeed, you will need the following:

  • Non-root users have sudo privileges.
  • Rocky Linux 8 or CentOS 8 server with at least 6GB disk space when installed (8GB recommended).
  • Recent versions of the wget and curl command line tools are also required.

System update

OpenLiteSpeed ​​is compatible with the Linux Rocky Linux 8, Alma Linux 8 and centOS 8 operating systems. The first thing to do is update the system and make sure OpenLiteSpeed ​​can be installed. Use the following commands to update your system.

sudo dnf clean all sudo dnf -y update sudo dnf install -y epel-release

Add OpenLiteSpeed ​​RPM Package

It's time to add RPM to your system. The process is very simple and can be done with one command. The OpenLiteSpeed ​​RPM package is a software package that includes OpenLiteSpeed ​​and all its dependencies. It also handles switching to the OpenLiteSpeed ​​daemon if you have any other web servers running on the server.

Run the command below to add the OpenLiteSpeed ​​RPM package. The rpm -Uvh part of the OpenLiteSpeed ​​RPM install command from the link provided by Litespeedtech This command also upgrades any existing packages currently installed on the system.

sudo rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm

Install OpenLiteSpeed ​​Web Server

Now that you have the RPM package installed and the OpenLiteSpeed ​​repository activated, the next step is to install OpenLiteSpeed.

Run the command below to install OpenLiteSpeed ​​Web Server on Centos 8 system.

sudo dnf install openlitespeed -y

Configure OpenLiteSpeed ​​Web Server

OpenLiteSpeed ​​is installed now. You need to run some commands to continue the configuration process. You should not make any changes to your site until the configuration of OpenLiteSpeed ​​has been successfully completed. This will ensure that the back-end and front-end of the website remain in sync as changes are made to the code and files in the process.

The default password for OpenLiteSpeed ​​is: 123456. You should at least change it to something more secure before completing the installation.

You can change the default password by running the admpass.sh command below. admpass.sh is designed to generate the admin password string. It uses the language of a file named addpass.php provided with the OpenLiteSpeed ​​distribution and then applies that language to the local LSWS installation by hardcoding it in an automatically generated script.

/usr/local/lsws/admin/misc/admpass.sh

Provide a username which is the username you want to use for your LSWS admin account. Provide a password containing at least 6 random syllables of your choice.

Run the commands below to start and check the status of the lsws service.

sudo systemctl start lsws sudo systemctl status lsws

You will get the following results.

Firewall configuration

Now that you have successfully installed OpenLiteSpeed, it's time to open some ports for OpenLiteSpeed ​​on the firewall. This is where OpenLiteSpeed ​​communicates with clients.

OpenLiteSpeed ​​uses ports 7080 and 8080 by default. You need to open these ports on your firewall so that clients can access OpenLiteSpeed ​​and publish webpages

  • Port 7080 is the default listening port for OpenLiteSpeed ​​Web Server. This is the port that the server will use to listen to requests coming from clients.
  • Port 8088 is the default port for HTTP. This is the port that any web browser will use to connect to your OpenLiteSpeed ​​server. To open these ports, you will use the iptables commands.

Run the command below to open port 8088 and tcp on your firewall.

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

Run below command to open port 7080 and tcp port on your firewall.

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

Run the command sudo firewall-cmd –reload to apply the new firewall rules.

sudo firewall-cmd --reload

Through this tutorial, you learned how to install and configure OpenLiteSpeed ​​Web Server on Rocky Linux and CentOS. If you want to learn more about setting up and working with OpenLiteSpeed ​​Web Server, please visit its official documentation page for more information here.

Related posts
Other Linux articles
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup