This tutorial is about how to run OpenLiteSpeed Web Server on Rocky Linux 8 and AlmaLinux 8. We will try our best for you to 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 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 many special features to make your experience more consistent, for example custom PHP management with simplified guidelines on how best to use it or admin interfaces that will allow you to manage all parts of the updates of the site in one place without having to manage multiple scripts. scattered in better places in the city.
It is a multi-stage web server that works beautifully with all operating systems and stands out for its super-fast speeds. You can use, modify or even reassign OpenLiteSpeed under LGPL authorization details. Moreover, you can easily find the support of different users on the message sheets because it has been around for more than ten years.
- Rocky Linux 8 Server
- User account with sudo privileges
- Strong internet connection
- Update our system
- Add OpenLiteSpeed to Rocky Linux 8 to Repository
- Install OpenLiteSpeed on Rocky Linux
- Install PHP
- Install and configure MySQL
- Configure OpenLiteSpeed Login administrator credentials
- Try OpenLiteSpeed
- How to install aapanel 6 on Fedora 34
Update Rocky Linux repositories
First we need to update our system 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 update dnf -y
Once the update is complete, continue adding OpenLiteSpeed to the repository.
Add OpenLiteSpeed to EPEL Repository
To add OpenLiteSpeed to our repository on Rocky 8 Linux, type the following in our terminal;
$ sudo dnf install epel-release
…. Running transaction verification Transaction verification was successful. Running the transaction test The transaction test was successful. Transaction in progress Preparing: 1/1 Installing: epel-release-8-13.el8.noarch 1/1 Scriptlet running: epel-release-8-13.el8.noarch 1/1 Verifying: epel-release -8-13. el8.noarch 1/1 installed: epel-release-8-13.el8.noarch done!
Add OpenLiteSpeed to our repository
$ sudo rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm
Retrieved from http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm
Verification … #################################
1: litespeed-repo-1.2-1.el8 ##############################
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
After the installation is complete, check the status of the OpenLiteSpeed server with the following command;
$ # state sudo systemctl lsws ●
lshttpd.service – OpenLiteSpeed HTTP Server
Loaded: loaded (/usr/lib/systemd/system/lshttpd.service; enabled; predefined provider: disabled)
Active: active (running) as of Friday 11/12/2021 12:22:52 UTC; 1min 41s ago
Process: 63411 ExecStart=/usr/local/lsws/bin/lswsctrl start (code=exited, status=0/SUCCESS)
Primary PID: 63435 (litespeed)
├─63435 openlitespeed (lshttpd – main)
├─63439 openlitespeed (lscgid)
└─63452 openlitespeed (lshttpd – #01)
Nov 12 12:22:49 rockylinux systemd: Starting OpenLiteSpeed HTTP Server…
Nov 12 12:22:50 Rockylinux lswsctrl:litespeed:pid=63435.
Nov 12 12:22:52 rockylinux systemd: OpenLiteSpeed HTTP server started.
It should show the status as active so we can continue with this tutorial. If not, first start your server with the following command
Install PHP for OpenLiteSpeed
PHP is not integrated with OpenLiteSpeed as it is with Apache. OpenLiteSpeed delegates PHP execution to external PHP executables. This will allow better security, stability and management of multiple connections. Start installing 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 proceed to the installation of the MySQL server
Install MySQL Server
You can run the following command to install MySQL server
$ sudo dnf install mysql mysql-server
Run the secure install script to secure MyQL, but first you need to start the mysqld service;
$ sudo systemctl start mysqld
$ sudo systemctl enable mysqld
Check the status now with the following command;
$ sudo systemctl mysqld state
● mysqld.service: MySQL 8.0 database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; predefined provider: disabled)
Active: active (running) as of Friday 2021-11-12 12:56:55 UTC; 2min 48s ago
Main PID: 66270 (mysqld)
Status: “The server is operational”
Tasks: 37 (limit: 11,189)
Memory: 458.0 MB
└─66270 /usr/libexec/mysqld –basedir=/usr
Nov 12 12:56:47 Rockylinux systemd: Starting MySQL 8.0 database server…
Nov 12 12:56:47 rockylinux mysql-prepare-db-dir: Initializing MySQL database
Nov 12 12:56:55 rockylinux systemd: starting MySQL 8.0 database server.
Now it’s time to run our secure installation, follow these steps;
$ sudo mysql_secure_installation
To easily log in to the system, it is better not to set the validation password. Type N and subsequent instructions may type Y to allow the installation to continue. When it is done, we can now move on to setting up the OpenLiteSpeed admin panel.
Configure OpenLiteSpeed Admin Panel
To change the default password in the OpenLiteSpeed panel, we must execute the following command;
# Specify the administrator username.
This is the username required to log in to the administration web interface.
Specify the administrator password.
This is the password required to log in to the administration web interface. Password:
The administrator username/password was successfully updated.
We successfully added the administrator, now it’s 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 these ports. To do this, we can do the following;
$ 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 need to reload the system for the changes to take effect.
$ sudo firewall-cmd –reload
If you’re having trouble with the following, make sure firewalld is up and running. Run the following command to enable it.
$ systemctl enable -now firewalld
Finally, we can test our OpenLiteSpeed to see if it works with the following in your favorite browser;
To access the admin site we need to use port 7080 like this
Final Words: How to Run OpenLiteSpeed Web Server on Rocky Linux 8 and AlmaLinux 8
Hope you understand this article How to Run OpenLiteSpeed Web Server on Rocky Linux 8 and AlmaLinux 8, if your answer is no, you can ask anything via the contact forum section linked to this article. And if your answer is yes, share this article with your family and friends.