Share on Social Media

Learn how to install CWP on Rocky Linux 8 with this comprehensive guide. Follow our step-by-step instructions to set up and configure CWP (Control Web Panel) for optimal performance on your server. #centlinux #linux

What is Control Web Panel?

Control Web Panel (CWP), previously called CentOS Web Panel, is a free and open-source web hosting control panel designed specifically for Linux servers. It provides a user-friendly interface for managing various aspects of your web hosting environment, making it easier to:

  • Install Applications: CWP integrates with tools like Softaculous, allowing you to install popular applications like WordPress, Joomla, and Drupal with just a few clicks.
  • Manage Websites & Domains: You can create and manage websites, configure domains, and set up email accounts for your domains, all from a central location.
  • Database Management: CWP offers tools to manage databases like MySQL, PostgreSQL, and MongoDB, including creating databases, users, and privileges.
  • Security Features: Built-in security features like firewalls and antivirus scanners help keep your server protected.
  • Server Administration: CWP provides basic server administration tools for tasks like managing users, file permissions, and system resources.

Essentially, CWP acts as a one-stop shop for managing your web hosting needs on a Linux server. It’s a great alternative to paid control panels like cPanel, especially for users comfortable with a Linux environment.

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 – cwp-01.centlinux.com
  • IP Address – 192.168.116.128 /24

Read Also: How to install CyberPanel on Rocky Linux 8

Update your Rocky Linux Server

Connect with cwp-01.centlinux.com as root user with the help of a ssh client.

Refresh the yum cache of your Linux operating system.

# dnf makecache

Execute the following dnf command to update software packages in your Linux operating system.

# dnf update -y

If your Linux Kernel is updated by previous command, then you should restart your Linux machine with the new Kernel.

# reboot

Verify the versions of Linux Kernel and operating systems that are being used in this installation guide.

# uname -r
4.18.0-372.9.1.el8.x86_64

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

Install EPEL Yum Repository

CWP requires some software packages from EPEL yum repository, therefore enable it by executing following command.

# dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 0:03:42 ago on Sat 25 Jun 2022 12:33:49 PM PKT.
epel-release-latest-8.noarch.rpm                 17 kB/s |  23 kB     00:01
Dependencies resolved.
================================================================================
 Package             Architecture  Version            Repository           Size
================================================================================
Installing:
 epel-release        noarch        8-15.el8           @commandline         23 k

Transaction Summary
================================================================================
Install  1 Package

Total size: 23 k
Installed size: 32 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : epel-release-8-15.el8.noarch                           1/1
  Running scriptlet: epel-release-8-15.el8.noarch                           1/1
  Verifying        : epel-release-8-15.el8.noarch                           1/1

Installed:
  epel-release-8-15.el8.noarch

Complete!

Build cache for newly installed yum repositories.

# dnf makecache

You may also required wget utility for downloading of CWP installation script. Therefore install it now.

# dnf install -y wget

How to install CWP on Rocky Linux 8

Download and execute CWP installation script.

# cd /usr/local/src
# wget http://centos-webpanel.com/cwp-el8-latest
# sh cwp-el8-latest

The CWP installation is fully automated, It takes a couple of minutes to complete based on your Network connection speed. It installs many supplementary software for your Control Web Panel, such as MariaDB, PHPMyAdmin, etc.

At the end of CWP installation, you will some useful information. Save it for later use.

#############################
# CWP Installed #
#############################

Go to CentOS WebPanel Admin GUI at http://SERVER_IP:2030/

http://206.82.151.222:2030
SSL: https://206.82.151.222:2031
---------------------
Username: root
Password: ssh server root password
MySQL root Password: IP2qi91Oz0MU

#########################################################
CentOS Web Panel MailServer Installer
#########################################################
SSL Cert name (hostname): cwp-01.centlinux.com
SSL Cert file location /etc/pki/tls/ private|certs
#########################################################

Visit for help: www.centos-webpanel.com
Write down login details and press ENTER for server reboot!
69 files removed
Please reboot the server!
Reboot command: shutdown -r now
You have mail in /var/spool/mail/root

Restart your machine to complete Control Web Panel setup.

# reboot

How to access Control Web Panel?

After restart, open URL http://cwp-01.centlinux.com:2030 in a web browser.

Control Web Panel Login
Control Web Panel Login

Login as root user (Credentials of your OS root user will be used).

Control Web Panel Dashboard
Control Web Panel Dashboard

You have reached at the dashboard of the CWP.

Here, you have setup a few things according to your network environment. The settings are:

  1. Setup root email
  2. Setup at least one hosting package Or edit default package.
  3. Setup shared IP (Must be your public IP address)
  4. Setup Name Servers

Final Thoughts

In conclusion, How to install CWP on Rocky Linux 8 is a straightforward process that can significantly enhance the management of your web server. By following the steps outlined in this guide, you can ensure a smooth and efficient setup. If you need further assistance or prefer professional help, feel free to reach out to me on Fiverr for expert support.

2 thoughts on “How to install CWP on Rocky Linux 8”

Leave a Reply