How to install CyberPanel with OpenLiteSpeed on AlmaLinux 9

How to Install CyberPanel with OpenLiteSpeed on AlmaLinux 9

In this tutorial, we will explain how to install CyberPanel with OpenLiteSpeed on AlmaLinux 9 OS. CyberPanel is a web hosting control panel powered by the OpenLiteSpeed web server and is used worldwide. The Cyber Panel is free only when used with the free OpenLiteSpeed, and it is paid when used with the LiteSpeed Enterprise edition. So that depends on the type of web server you want to use. CyberPanel offers a range of features, including web server management, SSL certificate management, FTP, Docker application management, DNS, firewall management, WordPress one-click installation, and more.

Installing CyberPanel with OpenLiteSpeed on AlmaLinux 9 is a straightforward process, and the installation may take up to 30 minutes. Let’s get started!

Prerequisites

  • A server running AlmaLinux 9 OS
  • At least 1 GB of RAM and 10 GB of disk space
  • User privileges: root or non-root user with sudo privileges

Update the system

Before we start with the installation of CyberPanel, we need to update the system packages to their latest available versions. To do that, execute the following command:

sudo dnf update -y && sudo dnf upgrade -y

Remove Unnecessary Installations

The CyberPanel requires a completely clean server, allowing us to download and execute its installation script. We assume that you have a fresh installation of AlmaLinux 9, but we will execute the commands below to stop and remove the possible installed services:

sudo systemctl stop mysql.service && sudo systemctl stop httpd.service && sudo systemctl stop dovecot.service && sudo systemctl stop postfix.service

Once the services are stopped, we can remove them entirely with the following command:

sudo dnf remove mysql-server apache2 dovecot-core postfix -y 

After executing this command, a message may appear indicating that some of the following services are not found. This is normal, as it means they were not previously installed, which simplifies the CyberPanel installation process.

Install CyberPanel with OpenLiteSpeed

Now, we can proceed with the installation of CyberPanel using the free version of OpenLiteSpeed web server. To do that, first download the installation script and make it executable with the commands below:

cd /opt

wget -O installer.sh https://cyberpanel.net/install.sh

chmod +x installer.sh

Execute the script:

sh installer.sh

Follow the script questions and choose the options. First, you need to choose 1 to install CyberPanel.

Initialized...

CyberPanel Installer v2.4.1

1. Install CyberPanel.

2. Exit.

  Please enter the number[1-2]: 1

Then you need to type 1 and hit enter to install CyberPanel with the OpenLiteSpeed:

        CyberPanel Installer v2.4.1

RAM check : 906/3655MB (24.79%)

Disk check : 10/79GB (14%) (Minimal 10GB free space)

1. Install CyberPanel with OpenLiteSpeed.

2. Install Cyberpanel with LiteSpeed Enterprise.

3. Exit.

 Please enter the number[1-2]: 1

Install the Full service for CyberPanel.

Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd.

Full installation [Y/n]: Y

Next, we will choose to install the local MySQL server, which means that the MySQL server will be hosted on the same server, and NOT remotely:

Do you want to setup Remote MySQL? (This will skip installation of local MySQL)

(Default = No) Remote MySQL [y/N]: N

Press Enter to select the latest version:

Press Enter key to continue with latest version or Enter specific version such as: 1.9.4 , 2.0.1 , 2.0.2 ...etc

Next, you can choose to enter a password, choose the default, or just hit Enter, or type r, and there will be a randomly generated password. We will select r for random strong passwords.

Please choose to use default admin password 1234567, randomly generate one (recommended) or specify the admin password?
Choose [d]fault, [r]andom or [s]et password: [d/r/s] r

Next, choose if you want Memcached to be installed with the PHP extensions. We will select Yes:

Do you wish to install Memcached process and its PHP extension?
Please select [Y/n]: Y

We will do the same for Redis:

Do you wish to install Redis process and its PHP extension?
Please select [Y/n]:Y

Lastly, we will choose ‘Yes’ for the Watchdog service.

Would you like to set up a WatchDog (beta) for Web service and Database service ?
The watchdog script will be automatically started up after installation and server reboot
If you want to kill the watchdog , run watchdog kill
Please type Yes or no (with capital Y, default Yes): Y

The installation will start, and you should allow around 30 minutes until you see output similar to this:

###################################################################
                CyberPanel Successfully Installed                  

                Current Disk usage : 10/79GB (14%)                        

                Current RAM  usage : 881/3655MB (24.10%)                         

                Installation time  : 0 hrs 27 min 0 sec                 

                Visit: https://YourServerIPAddress:8090                     
                Panel username: admin                              
                Panel password: kvbQYQ5beDxlyznB                        

             Run cyberpanel help to get FAQ info
             Run cyberpanel upgrade to upgrade it to latest version.
             Run cyberpanel utility to access some handy tools .

              Website : https://www.cyberpanel.net                 
              Forums  : https://forums.cyberpanel.net              
              Wikipage: https://docs.cyberpanel.net                
              Docs    : https://cyberpanel.net/docs/               

            Enjoy your accelerated Internet by                  
                CyberPanel & OpenLiteSpeed                                   
###################################################################
If your provider has a network-level firewall
Please make sure you have opened following port for both in/out:
TCP: 8090 for CyberPanel
TCP: 80, TCP: 443 and UDP: 443 for webserver
TCP: 21 and TCP: 40110-40210 for FTP
TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service
TCP: 53 and UDP: 53 for DNS service
Would you like to restart your server now? [y/N]: y

This means that the installation is complete, and we should type y to restart the server.

Access the CyberPanel GUI

The CyberPanel is listening on port 8090, so to access it, you need to visit the following URL: https://YourServerIPAddress:8090 and enter the username and password that the installation script provided above.

install CyberPanel on AlmaLinux 9

Once you enter your credentials and click the Sign In button, you will be redirected to the CyberPanel admin dashboard.

CyberPanel on AlmaLinux 9

That’s it. You learned how to install CyberPanel with OpenLiteSpeed on AlmaLinux 9 OS.

Of course, you don’t have to install it on your own if you encounter difficulties and are unfamiliar with Linux and shell scripts. You can always contact our technical support. You only need to sign up for one of our NVMe VPS plans and submit a support ticket. We are available 24/7 and will attend to your request promptly.

If you liked this post about installing CyberPanel with OpenLiteSpeed on AlmaLinux 9, please share it with your friends or leave a comment down below.

Leave a Comment