How to Set up a CentOS Web Panel – Install Centos Control Pannel

Hey Before We start installing Centos web control pannel we must know what is centos CP and who can use this?

So, CentOS Web Panel is a free web hosting control panel designed for the quick and easy management of servers minus the chore and effort of using an SSH console for every time you want to do something. CentOS Web Panel offers a huge number of options and features for server management in its control panel package and it automatically installs a full LAMP (Linux, Apache, MySQL, PHP) stack on your desired server such as ApachePHP, or phpMyAdmin.

Who don’t want to invest huge money on Cpanel or Plesk can definitely go ahead with centos cp it’s amazing control pannel and with all features. it’s free and have a premium version also available.

If you are using Cpanel and want to move your domain to Centos CP you can do that easily with CPANEL MIGRATION ( Migrate from your account in the cPanel to CWP free control panel with very few clicks within the CWP admin interface and you are ready to enjoy your awesome modern control panel. CWP Migration wizard restores your all MySQL databases, MySQL Users and all your website files from the public_html folder. )


In this tutorial, you will learn how to set up a CentOS web Panel on a CentOS server. Setting up this panel will allow for quick and easy management of your server.

Setup CentOS Web Panel

In this tutorial, you will be installing a CentOS 7 server. You will also assign a full qualified domain name (FQDN) to your server and set up a static IP address of your server and a pointed domain to your server with custom nameservers. You will configure Inbound/Outbound Firewall Rules.

Step 1: Update Your Server and Install Wget Package

We need to ensure that your server is up to date, also we need to install Wget which we will use to download the CentOS Web Panel installer to your server. Use the following command:

yum -y update && yum -y install wget

Step 2: Setup Server FQDN

CentOS Web panel requires FQDN set as hostname, you can use hostnamectl command to do that:

hostnamectl set-hostname

Step 3: Configure Firewall Rules

Firewall rules define what kind of Internet traffic is allowed or blocked. You can think of it as an additional protection layer provided by your hosting provider to take control of your traffic.

Inbound firewall rules define what kind of traffic will be allowed to which ports from which sources. If no inbound rules are configured, no incoming traffic is permitted.

Outbound firewall rules define what kind of traffic will be allowed to leave the server on which ports and can be restricted to specific destinations. If no outbound rules are configured, no outbound traffic is permitted.

If your hosting provider asks you to configure the firewall rules of your traffic (Skip if not), you have to configure your firewall rules to allow your traffic through their network for the following ports:

20 – FTP
21 – FTP
22 – SSH
26 – SMTP
43 – WHOIS
80 – HTTP / Apache Web server
110 – POP3/EMAIL
143 – IMAP
443 – HTTPS / Apache Web server SSL
873 – RSYNC
2030 – CWP Admin
2031 – CWP Admin SSL
2082 – CWP User Panel
2083 – CWP User Panel SSL
2086 – CWP Admin (same as 2030)
2087 – CWP Admin SSL (same as 2031)
2304 – CWP External API SSL (https, only for api access like whmcs )
3306 – MYSQL

Step 4: Install CentOS Web Panel

Now you are ready to start CentOS Web Panel Installation, the installation is pretty easy, it will automatically install all the required packages and you don’t need to do anything, but it may run more than 15 minutes because it needs to compile Apache and PHP from source.

You can install CentOS Web Panel by running the following command:

cd /usr/local/src && wget && sh cwp-el7-latest

Once the installation is done you will be provided with an URL to access the panel and your MySQL root password, keep these details somewhere safe.

Now, you have to reboot your server so that all updates can take effect and CentOS Web Panel gets started:


In case you are log in over SSH using public key authentication and your root user doesn’t have a password, you will need to set one. After rebooting, log in to your server with SSH and enter the command:


And set your password

Step 5: Configure Your CentOS Web Panel

Log in to your CentOS Web Panel Admin GUI using the link provided by the installer on your server, root username and password.

After successfully entering the panel, you should see something like:

Step 6: Update Admin Email and NAT

From the left menu, click on CWP Settings, then select Edit Settings.

Change your Admin Email, then click Save Changes.

Step 7: Update Nameserver on CentOS Web Panel

To update your namesever, you need to register a custom nameserver. A custom nameserver allows you to run your own nameserver to respond to DNS requests for your domains. such as ns1.(your domain name). Before you can add those nameservers to domain names, you need to register them.

If you registered your domain name on Leasemyhost® Domains, in order to create a custom nameservers, you can directly go to the Domain Name Console, find the domain name that you want to create the custom nameservers for it → Manage → DNS Host → Create a DNS server.

If your domain is registered with another domain registrar, you can search on google or read their FAQs, if you can’t find the answer, contact them.

After registering your custom nameservers, update the nameserver of your domain to use the new one.

Now, let’s get back to CentOS Web Panel. From the left menu, click DNS Functions, then select Edit Nameservers IPs.
Update your Namerservers info and click Save Changes.

To host a website on your server and provides a full service for it. From the left menu, click on User Accounts, then select New Account.

Now that that’s all done. You can spend some time exploring the features and settings of your CentOS Web Panel.


Hey, i hope you like this blog, if yes don’t forget to share this post with your known one or also you can share this blog on Facebook or other social media platform, Really I will like that a lot.

Be the first to comment

Leave a Reply

Your email address will not be published.