CentOS Web Panel (CWP) is a free web hosting control panel designed for easy server management. It provides a user-friendly interface and various automation features, making it a popular choice for administrators. This guide will walk you through the steps to install CWP on CentOS 7.

Prerequisites

  • A fresh installation of CentOS 7 (Minimal or Full version)
  • Root access to the server
  • At least 1 GB RAM (2 GB recommended)
  • A valid domain name (optional but recommended)

Step 1: Update Your System

Before installing CWP, update your system packages to ensure compatibility and security.

yum update -y

Step 2: Set Hostname

CWP requires a fully qualified domain name (FQDN) as the hostname. Set your hostname using the following command:

hostnamectl set-hostname yourdomain.com

Replace yourdomain.com with your actual domain name.

Step 3: Disable SELinux

CWP does not work well with SELinux enabled, so it needs to be disabled:

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0

Step 4: Install CWP

Download and run the CWP installation script:

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

The installation process will take several minutes, depending on your server’s resources.

Step 5: Reboot the Server

Once the installation is complete, reboot your server to apply changes:

reboot

Step 6: Access CWP Admin Panel

After rebooting, you can access the CWP admin panel using your server’s IP address:

http://your-server-ip:2030/

Log in using the root credentials of your server.

Conclusion

You have successfully installed CentOS Web Panel on your CentOS 7 server. From here, you can configure your web hosting environment, manage domains, databases, and email services efficiently. For more details, visit the CWP official documentation.