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 "cwp.linuxtechi.com"
~]# exec bash

Update /etc/hosts file.

[[email protected] ~]# echo "192.168.1.60 cwp.linuxtechi.com cwp" >> /etc/hosts

Update your CentOS 7 server and then reboot.

[[email protected] ~]# yum update -y && reboot

Step:2 Download and Install latest version of CWP

Download latest version of CWP from their official site (http://centos-webpanel.com), Use the beneath wget command

[[email protected] ~]# yum install wget -y
[[email protected] ~]# cd /usr/local/src/
[[email protected] src]# wget http://centos-webpanel.com/cwp-el7-latest

Note : In case above link doesn’t work then use ‘http://dl1.centos-webpanel.com/files/cwp-el7-latest’ with above wget command

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

[[email protected] 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 :

CWP-Installation-Message-CentOS7

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

http://Server_IP:2030

Or

https://Server_IP:2031

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

Login-CentOS-WebPanel

CWP Admin Dashboard would be something like below

CWP-Admin-Dashboard-CentOS7

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

Edit-NameServers-IP-Address-CWP

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

 

Configure-Shared-IP-CWP-Admin-Panel

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

Create-Web-Hosting-Package-CWP-Admin-Panel

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

User-Account-Create-CWP-Admin-Panel

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 “amzlnx.com

Add-Domain-CWP-Admin-Portal

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

Domain-Added-CWP-Panel

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.

7 Responses

  1. Alex says:

    When you configure amzlnx.com with your registrar do you point an A record to your public IP or do you point it at the nameservers ns1.centos-webpanel.com/ ns2.centos-webpanel.com?

    • Hi Alex, As i have tested the CWP in my private network, so i did make A record of amzlnx.com 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. zupied says:

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

  3. Mark says:

    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. KOF says:

    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. Som says:

    hey, can you say how to install it without database i.e. MySQL

  6. Deepender Singh says:

    Hi, Can we host windows website on this (CWP) Panel?

Leave a Reply to Mark Cancel reply

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

Pin It on Pinterest