CentLinux | Learn How to Install CentOS/Rocky Linux Servers

Sunday, June 12, 2022

Install Open Source CyberPanel on Rocky Linux 8

Install Open Source CyberPanel on Rocky Linux 8

In this article, your will learn how to install Open Source CyberPanel on Rocky Linux 8 or other RPM based Linux distros.

 

Table of Contents:

 

What is CyberPanel? :

CyberPanel is an open source web hosting control panel powered by OpenLiteSpeed and LiteSpeedEnterprise web servers. It is available in both Free and Enterprise Editions. It is an alternative to cPanel or Plesk.

CyberPanel is a control panel used for managing VPS and dedicated servers. It is targeted towards advanced consumers, not computer experts, who want to harness powerful servers to host web-based services using a graphical interface rather than the underlying operating system's command line.

Recommended Online Training: RHCE Linux System Engineer Complete Course

Install Open Source CyberPanel on Rocky Linux 8

 

Environment Specification:

We are using a minimal Rocky Linux 8 virtual machine with following specifications.

  • CPU - 3.4 Ghz (2 cores)
  • Memory - 1 GB
  • Storage - 20 GB
  • Operating System - Rocky Linux 8.6 (Green Obsidian)
  • Hostname - cyberpanel-01.centlinux.com
  • IP Address - 192.168.116.128 /24

 

Updating Rocky Linux Operating System:

By using a ssh client, connect with cyberpanel-01.centlinux.com as root user.

Refresh your yum cache by executing following command.

# dnf makecache
Rocky Linux 8 - AppStream                       437 kB/s | 8.4 MB     00:19
Rocky Linux 8 - BaseOS                          289 kB/s | 2.6 MB     00:09
Rocky Linux 8 - Extras                          3.6 kB/s |  11 kB     00:03
Metadata cache created.

Execute dnf command to update your Rocky Linux operating system.

# dnf update -y

If the above command updates your Linux Kernel then your should reboot your Linux machine before moving forward.

# reboot

After successful restart, verify the Linux operating system and Linux Kernel versions.

# uname -r
4.18.0-372.9.1.el8.x86_64

# cat /etc/rocky-release
Rocky Linux release 8.6 (Green Obsidian)

 

Installing CyberPanel Software on Rocky Linux:

Download the installation script of CyberPanel software by using wget command.

# wget https://cyberpanel.net/install.sh
--2022-06-12 08:39:01--  https://cyberpanel.net/install.sh
Resolving cyberpanel.net (cyberpanel.net)... 104.21.44.216, 172.67.203.238, 2606:4700:3030::6815:2cd8, ...
Connecting to cyberpanel.net (cyberpanel.net)|104.21.44.216|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1802 (1.8K) [application/x-sh]
Saving to: ‘install.sh’

install.sh          100%[===================>]   1.76K  --.-KB/s    in 0s

2022-06-12 08:39:03 (33.9 MB/s) - ‘install.sh’ saved [1802/1802]

Add execution permissions to install.sh file and then execute it.

# chmod +x install.sh
# ./install.sh
Checking and installing curl and wget

Initializing...

Fetching latest data from CyberPanel server...

This may take few seconds...

Branch name fetched...v2.3.1

Checking root privileges...

You are running as root...

Valid IP detected...

Checking server location...

Desktop OS not detected. Proceeding

System: RockyLinux 8 detected...

Checking virtualization type...

Initialized...

                CyberPanel Installer v2.3.1

1. Install CyberPanel.

2. Exit.


  Please enter the number[1-2]: 1

Enter your choice here, if your are not ready then you can press '2' to exit CyberPanel installer. Or you can press '1' to continue with the CyberPanel installation.

                CyberPanel Installer v2.3.1

RAM check : 223/937MB (23.80%)

Disk check : 2/39GB (6%) (Minimal 10GB free space)

1. Install CyberPanel with OpenLiteSpeed.

2. Install CyberPanel with LiteSpeed Enterprise.

3. Exit.


  Please enter the number[1-3]:  1

We are installing Open Source CyberPanel software, therefore it is better that we stick to the open source edition of web server as well.

Press '1' to install CyberPanel software with OpenLiteSpeed web server.

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

Full installation [Y/n]: Y

Press 'Y' setup DNS (Domain Name System), MTA (Mail Transfer Agent) and FTP (File Transfer Protocol) services along with CyberPanel software.

Full installation selected...

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

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

If you have already running a MySQL database server then you can select yes and provide the connection details of the same. Otherwise you can enter 'N' to install MySQL database server locally alongwith PHPMyAdmin.

Local MySQL selected...

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

Press <ENTER> to continue with installation of latest version of CyberPanel.

Branch name set to v2.3.1

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]  d

You can set admin user password here by yourself or you can go with the default or randomly generated passwords.

Press 'd' to use the default password for CyberPanel admin user.

Admin password will be set to 1234567


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

Press 'Y' to install Memcached and relevant PHP extensions.

Install Memcached process and its PHP extension set to Yes...


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

Press 'Y' to install Redis and relevant PHP extensions.

Install Redis process and its PHP extension set to Yes...


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

Press 'Y' to install WatchDog software for Web and Database services.

Now the automated installation of CyberPanel software will be started. You should sit back and relax or even have a cup of tea. Because the installation process will take quarter to half hour.

...
Generating a RSA private key
...........+++++
......................................+++++
writing new private key to '/usr/local/lscp/conf/key.pem'
-----
Generating a RSA private key
..................................................................................................................+++++
....+++++
writing new private key to '/usr/local/lsws/admin/conf/webadmin.key'
-----
Admin password successfully changed!

Finalizing...

Cleaning up...

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

                Current Disk usage : 5/39GB (16%)

                Current RAM  usage : 290/937MB (30.95%)

                Installation time  : 0 hrs 6 min 0 sec

                Visit: https://206.84.152.179:8090
                Panel username: admin
                Panel password: 1234567

             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
Your provider seems blocked port 25 , E-mail sending may not work properly.
Would you like to restart your server now? [y/N]: y

At the end of installation of open source CyberPanel software, the installer asks you to restart your Linux server.

Press 'Y' to restart your Linux server.

 

Accessing CyberPanel Web Interface:

After restart of your Linux machine. Open URL http://cyberpanel-01.centlinux.com:8090 in a web browser.

You don't have to worry about the Linux firewall configuration, because the installation process already added the necessary Rich Rules therein.

CyberPanel Login

Login as admin user the password that you have setup during CyberPanel installation.

CyberPanel Home

CyberPanel Home

Click on 'DATABASES' to go to Database functions page.

Cyberpanel Databases Function

Click on 'PHPMyAdmin' to open PHPMyAdmin application.

PHPMyAdmin

 

Conclusion:

In this article, you have successfully installed Open Source CyberPanel on Rocky Linux 8 or other RPM based Linux distros.

If you find this article useful? Consider supporting us by Buy Me A Coffee


No comments:

Post a Comment

© 2023 CentLinux. All Rights Reserved.