CentOS Web Panel (CWP) is a control panel for web hosting. It is a free alternative to cPanel. It has an easy-to-use interface and several other features for newbies who want to create and manage hosting servers. Using CWP is easy and convenient as you don’t have to access the server with SSH for every small task that needs to be completed.
This article provides a detailed guide on installing and using the CentOS Web Panel on CentOS 8.
Important points before installing CentOS Web Panel
There are a few crucial points that we must discuss before the installation of CentOS Web Panel, aka CWP.
- After you install CWP, it cannot be removed.
- You have to reinstall the server to remove CWP from your system.
- Your hostname cannot be the same as the name of any domain on your server.
- You should only install CWP on a computer with a freshly installed operating system and has not had any configuration changes yet.
- CWP does not support sticky, dynamic, or internal IP addresses.
Getting the Server ready
First, you need to install the EPEL repository on CentOS 8:
After that, install the packages required like “wget” for CWP installation by using the command:
Once the required packages are installed, update the server.
Updating the Server
Now we will use the command given below to update the server:
We will have to reboot the server now to let the updates modify the system. So, reboot the system using the command:
After rebooting the CentOS 8 system, it is fully ready for installing the CentOS Web Panel.
Installation of CWP
We are ready to install CWP on our system now that we have successfully prepared our server.
First, use the cd command to change your directory to /usr/local/src using the command:
Now use the wget command to install the latest version of CWP on your system:
Now run the following command to install the downloaded shell script:
CWP has been successfully installed. Reboot the server again to let the changes take effect:
You can also use the -r flag with the sh command to automatically reboot the system after CWP is successfully installed:
Now we will learn how to configure and use the CentOS Web Panel on CentOS 8.
Configure CentOS Web Panel
First, access the Admin Control WebPanel GUI by providing the server IP address and port number 2030.
http://server_IP_address:2030/
To check the server IP, open up the terminal of the system on which you installed CWP and enter the following command:
As my IP is 192.168.18.217, I will use http://192.168.18.217:2030 to access the admin control panel:
Input root in place of username and provide the server’s root password to login into the control panel.
The dashboard will look something like this:
Being able to login into the dashboard verifies the successful installation of CWP.
Now, to prepare your server for domain hosting, you have to do a couple of tasks.
Go to DNS Functions and click on Edit Name Servers IPs:
Add Name Server 1 and Name Server 2 with their IP addresses and click the Save Changes button:
After that, go to CWP settings and click on Edit settings to specify the shared IP address.
Now go to packages and select Add a Package button:
A pop-up will occur to add a package, so please provide the needed values and click on create:
After adding a new package, create an account by going to the “User Accounts” and then clicking on the “New Account.”
Provide all the details such as domain, username, email, and click on the create button.
Finally, we will add a domain.
To add a domain, click on “Domains” and then go to “Add Domain”:
Provide the name of the domain and select the “create” button to add the domain.
Conclusion
CentOS Web Panel (CWP) is a control panel for web hosting with an intuitive interface and many features to create and manage hosting servers. In this article, we have learned how to first prepare the server for installation, and then we have learned to install and configure CentOS Web Panel on CentOS 8 Operating system.