Share on Social Media

Discover how to install CyberPanel on Rocky Linux 8 with this detailed guide. Follow our step-by-step instructions to set up and configure CyberPanel for efficient web server management. #centlinux #linux #cyberpanel

What is CyberPanel?

CyberPanel is a modern web hosting control panel designed to simplify the management of web servers and websites. It offers a user-friendly interface and a range of features to facilitate the hosting process. Here are some key aspects of CyberPanel:

  1. OpenLiteSpeed Integration: CyberPanel is built around the OpenLiteSpeed web server, which is known for its speed and performance. This integration allows for enhanced server performance and resource management.
  2. User-Friendly Interface: The control panel provides an intuitive, easy-to-navigate interface, making it accessible even for users with limited technical knowledge.
  3. One-Click Applications: CyberPanel supports the one-click installation of various applications, including WordPress, Joomla, and PrestaShop, streamlining the process of setting up websites and blogs.
  4. Built-In Security Features: It includes security tools such as firewalls, ModSecurity, and CSF (ConfigServer Security & Firewall) to protect your server and websites from threats.
  5. Email Management: CyberPanel allows you to easily create and manage email accounts, with features like SpamAssassin to filter out spam.
  6. DNS Management: It includes DNS management tools to help you configure and manage your domain name settings.
  7. Automatic SSL: CyberPanel offers automatic SSL certificate installation through Let’s Encrypt, ensuring your websites are secure.
  8. Backup and Restore: It provides tools for scheduling backups and restoring your data, which is crucial for disaster recovery.
  9. Multi-User Capability: CyberPanel supports multiple user accounts, enabling you to delegate access and management tasks to different users.
  10. Resource Monitoring: It offers real-time monitoring of server resources, helping you track CPU, memory usage, and disk space to ensure optimal performance.

Overall, CyberPanel is a powerful and efficient control panel designed to simplify web hosting and server management tasks while providing robust performance and security features.

Recommended Online Training: Learn Bash Shell in Linux for Beginners

745772 0021show?id=oLRJ54lcVEg&offerid=1074652.745772&bids=1074652

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

Update 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)

How to install CyberPanel on Rocky Linux 8?

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.

Access 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
CyberPanel Login

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

CyberPanel Homepage
CyberPanel Homepage

Click on ‘DATABASES’ to go to Database functions page.

CyberPanel Database Functions
CyberPanel Database Functions

Click on ‘PHPMyAdmin’ to open PHPMyAdmin application.

CyberPanel - PHPMyAdmin
CyberPanel – PHPMyAdmin

Final Thoughts

In conclusion, installing CyberPanel on Rocky Linux 8 is a straightforward process that can greatly enhance your web server management capabilities. By following this guide, you’ll be able to set up CyberPanel efficiently and take advantage of its powerful features. If you need further assistance or prefer professional help, feel free to reach out to me on Fiverr for expert support.

Leave a Reply

Your email address will not be published. Required fields are marked *