How to Install and Configure CWP(CentOS Web Panel) on CentOS 7

CWP is free and open source web hosting control panel for CentOS Servers. CWP (
CentOS Web Panel) provides a powerful web interface through which we can manage our CentOS Servers and its services, apart from it CWP can also be used to create and manage shared hosting servers.

Whenever we install CWP it automatically install full LAMP stack (Linux, Apache, MySQL/MariaDB, PHP). Apart from LAMP stack followings softwares are being installed during CWP Installation

  • Email Server – Postfix, Dovecot, spamassassin, DKIM , Antivirus, Webmail (Round Cube)
  • CSF Firewall and SSL generator
  • User Management  includes followings add and update local users, manage ssh session, FTP Users , User Limits and monitoring of user’s activities
  • Live monitoring of system resources and services like Apache, Mail and FTP
  • Backup
  • AutoFixer for your server configuration.

In this article we will discuss how to install and configure CWP on CentOS 7. Beneath are perquisites of CWP:

  • Freshly Installed Minimal CentOS 7
  • A Static or fixed IP
  • Minimum of 4 GB RAM to install all modules or software otherwise 1 GB RAM for 64-bit system
  • Minimum of 10 GB Hard disk Space
  • Properly configured Hostname

Note: Once the CWP is installed on your CentOS Servers then we can’t uninstall or remove CWP, the only option is reinstalled your system.

Let’s jump into the Installation Steps:

Step:1 Configure Hostname and update the system

In Case you did not set the hostname of your system while installing CentOS 7 then use hostnamectl command to set hostname.

~]# hostnamectl set-hostname ""
~]# exec bash

Update /etc/hosts file.

[root@cwp ~]# echo " cwp" >> /etc/hosts

Update your CentOS 7 server and then reboot.

[root@cwp ~]# yum update -y && reboot

Step:2 Download and Install latest version of CWP

Download latest version of CWP from their official site (, Use the beneath wget command

[root@cwp ~]# yum install wget -y
[root@cwp ~]# cd /usr/local/src/
[root@cwp src]# wget

Note : In case above link doesn’t work then use ‘’ with above wget command

Now start CWP installation by executing “cwp-el7-latest”

[root@cwp src]# sh cwp-el7-latest

Script execution time totally depends on your internet connection because it will download and install the required packages of CWP. Once the Script has been executed successfully , we will get the output something like below :


Note down mysql root user password and hit enter to reboot your server.

Step:3 Accessing CWP Admin Control Panel

Once the server is online after reboot, try accessing the CWP admin portal from the your web browser




Use the User Name as root and password would be your server’s root password.


CWP Admin Dashboard would be something like below


This dashboard confirms that we have successfully installed CWP, Now to make your server ready for domain hosting,  you need to perform following tasks.

Configure Your Nameservers

Go to DNS Function –> Click on Edit Nameservers IPs


Save the Changes and restart bind service

Configure shared IP and Root email 

This step is important for hosting web sites (Shared hosting). So to configure shared IP, Go to CWP settings –> Click on Edit Settings  and then specify the shared IP ( it must a public IP).



click on save changes

Configure  atleast  One Web Hosting Package

To Configure web hosting package ,  Go to Packages –> Select ‘Add a Package’ option and specify the required values and then click on Create option, example is shown below


Add Domain in your CWP

To add domain in CWP, one account needs to be created first. To create an account, goto ‘User Accounts’ –> Select ‘New Account’, Specify the domain on which user will be created, user name, email and package etc


Click on create.

Now let’s try to add a domain, Go to ‘Domains’ –> Click on ‘Add Domain’ , specify the domain name that you want to add, in my case i am adding a domain name “


Click on create to add domain.

Below windows confirms that domain has been added successfully. Domain’s documents root, Server name, its alias and its other parameters has been updated


That’s all from this article. I hope this article helps you to understand CWP installation on CentOS 7 and its basic configurations, please share your feedback and comments.

Share on:

I am a Cloud Consultant with over 15 years of experience in Linux, Kubernetes, cloud technologies (AWS, Azure, OpenStack), automation (Ansible, Terraform), and DevOps. I hold certifications like RHCA, CKA, CKAD, CKS, AWS, and Azure.

10 thoughts on “How to Install and Configure CWP(CentOS Web Panel) on CentOS 7”

  1. When you configure with your registrar do you point an A record to your public IP or do you point it at the nameservers

    • Hi Alex, As i have tested the CWP in my private network, so i did make A record of that points to my Private IP, In Case you want to access your web site over internet you should point your web site’s A record to Shared public ip or dedicated public IP.

  2. Hi guys, i think we should remove or comment “echo nameserver and echo nameserver” from cwp-el7-latest. it can ruin everything if your ISP doesn’t permit google DNS as your DNS server. 🙂

  3. Him i think i usually get stuck here, Configure Your Nameservers. Which DNS should i put ? Domain registrar point to my dedicated IP or ?

  4. We also can set Nginx in CWP? look like very good control panel with alot of feature and all free.

    Thanks for post sharing.

  5. Thanks a lot for this value able post. I am new to VPS and like to get one. I was undecided about LAMP option to check or not at configuring the VPS. This article help me a lot.

  6. How can I log in as the first domain to create DB, etc.? I tried but it logout immediately. The others users are find.


Leave a Comment