How to Install CyberPanel with OpenLiteSpeed on Ubuntu 22.04

CyberPanel is a powerful web control panel that offers a simple server and websites management. In this tutorial, you will learn how to install CyberPanel with OpenLiteSpeed on Ubuntu 22.04. Let’s get started.

CyberPanel has ModSec and CSF built-in for better security, and you can easily manage all aspects of the panel, such as users, websites, databases, email accounts and FTP accounts. Combined with OpenLiteSpeed, it offers a high-performance all-in-one web server solution.

Prerequisites

  • Fresh install of Ubuntu 22.04
  • User privileges: root or non-root user with sudo privileges
  • A Linux Cloud VPS with at least 2GB of RAM

Step 1. Update the System

Before we start installing CyberPanel, we will need to update the system with the following commands:

# apt update
# apt upgrade -y

Step 2. Remove Unnecessary Installations

CyberPanel requires a fresh install of Ubuntu 22.04. Much like other system control panels such as WHM/cPanel and DirectAdmin, the script installs the web server, the database server and the mail transfer agent. If you have a fresh install of Ubuntu 22.04 with no preinstalled web server, database server, etc., you can skip this step and continue to Step 3.

Before you run the installation script, you will need to stop these services and remove them.

# systemctl stop nginx
# systemctl stop dovecot
# systemctl stop mysqld
# systemctl stop postfix

Now you can remove them with just one command:

# apt-get remove nginx mysql-server dovecot-core postfix

Make sure to confirm the removal.

Step 3. Install CyberPanel with OpenLiteSpeed

To install CyberPanel, you will need to download and run the CyberPanel script. You can download and run the script at the same time by executing this command:

# sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

You should receive similar output, where you should enter the number 1 to start the CyberPanel installation:

...
Checking server location...

Desktop OS not detected. Proceeding

System: Ubuntu 22 detected...

Checking virtualization type...

Initialized...

                CyberPanel Installer v2.3.4

1. Install CyberPanel.

2. Exit.


  Please enter the number[1-2]: 1

For the next question, you will also need to choose the first option to install CyberPanel with OpenLiteSpeed:

1. Install CyberPanel with OpenLiteSpeed.

2. Install Cyberpanel with LiteSpeed Enterprise.

3. Exit.


Please enter the number[1-3]: 1

For this step, you should also include PowerDNS, Postfix, and Pure-FTPd with installation by entering “Y”.

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

Full installation [Y/n]: Y

If you want to use a remote MySQL server (a server that is not the same one you are installing CyberPanel on) you can select y – otherwise, you should also install MySQL by entering the “N” option:

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

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

You should also simply press [Enter] to install the latest CyberPanel 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

Branch name set to v2.3.4

Here you can also choose any option, but it’s recommended to either generate a random password or set your own password. In this tutorial, we selected option r for a random password.

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

Then you can choose to install Memcached and its PHP extension:

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

For this step, it’s recommended to run the watchdog script to detect problems in the tables and data.

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

After this step, the installation will continue and if you have selected the random (r) option for the password, you should receive the password that was randomly generated.

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

                Current Disk usage : 8/25GB (31%)

                Current RAM  usage : 403/2969MB (13.57%)

                Installation time  : 0 hrs 28 min 0 sec

                Visit: https://YourServerIpAdress:8090
                Panel username: admin
                Panel password: *****

             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

Now you can now access the CyberPanel installation at https://YourServerIpAdress:8090.

Congratulations! You have successfully installed CyberPanel with OpenLiteSpeed on Ubuntu 22.04.

PS. If you liked this post on how to set up CyberPanel with OpenLiteSpeed on Ubuntu 22.04, please share it with your friends on social networks, or simply leave a reply in the comments section. Thanks.

Leave a Comment