How to install OpenLiteSpeed on Rocky Linux 9.2
To Install OpenLiteSpeed On Rocky Linux 9.2
Introduction:
OpenLiteSpeed is the open-source edition of LiteSpeed Web Server (LSWS). LiteSpeed Web Server is proprietary web server software. The software uses the same configuration format as Apache HTTP Server and is compatible with most Apache features.
Installation Procedure:
Step 1: Check the OS version by using the below command
[root@Linuxhelp ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.2 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.2 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"
Step 2: Installing the LiteSpeed Official repository by using the below command
[root@Linuxhelp ~]# wget -O - https://repo.litespeed.sh | sudo bash
--2023-08-19 05:27:40-- https://repo.litespeed.sh/
Resolving repo.litespeed.sh (repo.litespeed.sh)... 34.192.49.9
Connecting to repo.litespeed.sh (repo.litespeed.sh)|34.192.49.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5591 (5.5K) [application/octet-stream]
Saving to: ‘STDOUT’
- 100%[==================================================>] 5.46K --.-KB/s in 0.03s
2023-08-19 05:27:42 (183 KB/s) - written to stdout [5591/5591]
/tmp ~
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1798 100 1798 0 0 2182 0 --:--:-- --:--:-- --:--:-- 2184
~
LiteSpeed repository has been setup!
Install ext PHP repo.
LiteSpeed Tech Repository for CentOS 9 - x86_64 116 kB/s | 223 kB 00:01
LiteSpeed Tech Update Repository for CentOS 9 - x86_64 138 kB/s | 254 kB 00:01
Last metadata expiration check: 0:00:01 ago on Saturday 19 August 2023 05:27:47 AM.
remi-release-9.2.rpm 35 kB/s | 28 kB 00:00
Dependencies resolved.
==========================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================
Installing:
remi-release noarch 9.2-1.el9.remi @commandline 28 k
Installing dependencies:
epel-release noarch 9-4.el9 extras 19 k
Transaction Summary
==========================================================================================================================
Install 2 Packages
Total size: 46 k
Total download size: 19 k
Installed size: 52 k
Downloading Packages:
epel-release-9-4.el9.noarch.rpm 110 kB/s | 19 kB 00:00
--------------------------------------------------------------------------------------------------------------------------
Total 23 kB/s | 19 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : epel-release-9-4.el9.noarch 1/2
Running scriptlet: epel-release-9-4.el9.noarch 1/2
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
Installed:
epel-release-9-4.el9.noarch remi-release-9.2-1.el9.remi.noarch
Complete!
Step 3: Install EPEL and REMI yum repositories by using the below command
[root@Linuxhelp ~]# dnf install -y epel-release
Extra Packages for Enterprise Linux 9 - x86_64 5.3 MB/s | 18 MB 00:03
Remi's Modular repository for Enterprise Linux 9 - x86_64 625 B/s | 833 B 00:01
Remi's Modular repository for Enterprise Linux 9 - x86_64 3.0 MB/s | 3.1 kB 00:00
Importing GPG key 0x478F8947:
Userid : "Remi's RPM repository (https://rpms.remirepo.net/) <remi@remirepo.net>"
Last metadata expiration check: 0:00:02 ago on Saturday 19 August 2023 05:28:45 AM.
Package epel-release-9-4.el9.noarch is already installed.
Dependencies resolved.
==========================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================
Upgrading:
epel-release noarch 9-5.el9 epel 18 k
Transaction Summary
==========================================================================================================================
Upgrade 1 Package
Total download size: 18 k
Downloading Packages:
epel-release-9-5.el9.noarch.rpm 81 kB/s | 18 kB 00:00
--------------------------------------------------------------------------------------------------------------------------
Total 11 kB/s | 18 kB 00:01
Extra Packages for Enterprise Linux 9 - x86_64 1.1 MB/s | 1.6 kB 00:00
Importing GPG key 0x3228467C:
Userid : "Fedora (epel9) <epel@fedoraproject.org>"
Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : epel-release-9-5.el9.noarch 1/2
Running scriptlet: epel-release-9-5.el9.noarch 1/2
Cleanup : epel-release-9-4.el9.noarch 2/2
Upgraded:
epel-release-9-5.el9.noarch
Complete!
[root@Linuxhelp ~]# dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm
Last metadata expiration check: 0:00:20 ago on Saturday 19 August 2023 05:28:45 AM.
remi-release-9.rpm 29 kB/s | 28 kB 00:00
Package remi-release-9.2-1.el9.remi.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Step 4: Build yum cache for newly installed yum repositories by using the below command
[root@Linuxhelp ~]# dnf makecache
Extra Packages for Enterprise Linux 9 - x86_64 7.8 kB/s | 7.4 kB 00:00
LiteSpeed Tech Repository for CentOS 9 - x86_64 7.2 kB/s | 3.6 kB 00:00
LiteSpeed Tech Update Repository for CentOS 9 - x86_64 8.1 kB/s | 3.6 kB 00:00
Remi's Modular repository for Enterprise Linux 9 - x86_64 677 B/s | 833 B 00:01
Safe Remi's RPM repository for Enterprise Linux 9 - x86_64 689 B/s | 833 B 00:01
Rocky Linux 9 - BaseOS 5.1 kB/s | 4.1 kB 00:00
Rocky Linux 9 - AppStream 4.8 kB/s | 4.5 kB 00:00
Rocky Linux 9 - Extras 3.1 kB/s | 2.9 kB 00:00
Metadata cache created.
Step 5: Enter dnf install -y openlitespeed
[root@Linuxhelp ~]# dnf install -y openlitespeed
Last metadata expiration check: 0:00:58 ago on Saturday 19 August 2023 05:29:48 AM.
Dependencies resolved.
==========================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================
Installing:
openlitespeed x86_64 1.7.18-1.el9 litespeed 16 M
Installing dependencies:
gd3php x86_64 2.3.3-9.el9.remi remi-safe 136 k
highway x86_64 1.0.5-1.el9 epel 33 k
libaom x86_64 3.6.1-1.el9 epel 1.8 M
libargon2 x86_64 20171227-7.el9 epel 28 k
Transaction Summary
==========================================================================================================================
Install 28 Packages
Total download size: 30 M
Installed size: 120 M
Downloading Packages:
(1/28): highway-1.0.5-1.el9.x86_64.rpm 81 kB/s | 33 kB 00:00
(2/28): libargon2-20171227-7.el9.x86_64.rpm 461 kB/s | 28 kB 00:00
(3/28): jxl-pixbuf-loader-0.7.0-1.el9.x86_64.rpm 110 kB/s | 53 kB 00:00
(4/28): libavif-0.11.1-4.el9.x86_64.rpm 695 kB/s | 81 kB 00:00
(5/28): libimagequant-2.17.0-1.el9.x86_64.rpm 715 kB/s | 62 kB 00:00
--------------------------------------------------------------------------------------------------------------------------
Total 3.0 MB/s | 30 MB 00:10
LiteSpeed Tech Repository for CentOS 9 - x86_64 1.7 MB/s | 1.8 kB 00:00
Importing GPG key 0x83084D0E:
Userid : "LiteSpeed Tech Inc. (LiteSpeed GnuPG Key) <info@litespeedtech.com>"
Fingerprint: 4225 9994 257E 19EB 6A91 CA85 3F6F 6270 8308 4D0E
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-litespeed
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libzip-1.7.3-7.el9.x86_64 1/28
Installing : lsphp74-common-7.4.33-2.el9.x86_64 2/28
Installing : lsphp74-pdo-7.4.33-2.el9.x86_64 3/28
Installing : lsphp74-mysqlnd-7.4.33-2.el9.x86_64 4/28
Installing : lsphp74-opcache-7.4.33-2.el9.x86_64 5/28
28/28
..............+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..+.............+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.....+...+............+....+...+.....+.............+...+..............+.+.....+.......+..............+...+...+...+.+..................+..+...+.+..+.......+........+...+.+......+..+.+............+..+.......+.........+..+....+.....................+...+.....+......+.+...+...............+..+..........+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..........+............+.........+.....+......+.+..+..........+...+...+..+.........+.+...+..+....+...+..+...+......+....+........+...+....+...+.........+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+....+...+.....+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+....+............+.........+......+...+...+...+..+..........+..+............+...+.+...........+..........+.....+.+.....+...+....+......+...........+..........+......+........+....+...+..+.+.....+.........+.+.........+............+...+........+.........+...+.......+........+.+............+..+.+..+...................+.....+...+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Verifying : highway-1.0.5-1.el9.x86_64 1/28
Verifying : jxl-pixbuf-loader-0.7.0-1.el9.x86_64 2/28
Verifying : lsphp74-xml-7.4.33-2.el9.x86_64 23/28
Verifying : gd3php-2.3.3-9.el9.remi.x86_64 24/28
Verifying : libc-client-2007f-30.el9.remi.x86_64 25/28
Verifying : oniguruma5php-6.9.8-1.el9.remi.x86_64 26/28
Verifying : libnsl-2.34-60.el9.x86_64 27/28
Verifying : libzip-1.7.3-7.el9.x86_64 28/28
Installed:
gd3php-2.3.3-9.el9.remi.x86_64 highway-1.0.5-1.el9.x86_64 jxl-pixbuf-loader-0.7.0-1.el9.x86_64
lsphp74-pdo-7.4.33-2.el9.x86_64 lsphp74-process-7.4.33-2.el9.x86_64 lsphp74-xml-7.4.33-2.el9.x86_64
oniguruma5php-6.9.8-1.el9.remi.x86_64 openlitespeed-1.7.18-1.el9.x86_64 rav1e-libs-0.6.6-1.el9.x86_64
svt-av1-libs-0.9.0-1.el9.x86_64
Complete!
Step 6: To get default admin user/password by displaying the content of the file by using cat command.
[root@Linuxhelp ~]# cat /usr/local/lsws/adminpasswd
WebAdmin user/password is admin/NTc3NDNl
Step 7: Enable and start OpenLiteSpeed service by using the below command
[root@Linuxhelp ~]# systemctl enable --now lsws
[root@Linuxhelp ~]# systemctl start --now lsws
Step 8: Allow both OpenLiteSpeed port 8088/tcp for websites and port 7080/tcp for its web admin console in Linux Firewall to enable network access.
[root@Linuxhelp ~]# firewall-cmd --permanent --add-port={8088,7080}/tcp
success
[root@Linuxhelp ~]# firewall-cmd --reload
Success
Step 9: Go to browser and search our server ip address with the OpenLitespeed website port number
http://192.168.6.130 :8088
Step 10: Access the OpenLiteSpeed Web Admin Console at http://192.168.6.130:7080
Login as admin user with the auto-generated password.
we have reached the Dashboard of OpenLiteSpeed Web Admin Console.
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to Install OpenLiteSpeed on Rocky Linux 9.2. Your feedback is much welcome.