By Abdulaziz Gebril, Alibaba Cloud Community Blog author.
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 full LAMP (Linux, Apache, MySQL, PHP) stack on your desired server such as Apache, PHP, or phpMyAdmin.
You can learn about all the features of CentOS Web Panel here, and you can also test its Admin and End user Panel here.
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.
Don't have Alibaba Cloud account yet? Sign up to get $300 - $1200 Worth of Free Trial for your new Alibaba Cloud account.
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 a custom nameservers. You will configure Inbound/Outbound Firewall Rules.
We need to ensure that your server is up to date, also we need to install Wget which we will use to download CentOS Web Panel installer to your server. Use the following command:
yum -y update && yum -y install wget
CentOS Web panel requires FQDN set as hostname, you can use
hostnamectl command to do that:
hostnamectl set-hostname server.domain.com
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 25 – SMTP/EMAIL 26 – SMTP 43 – WHOIS 53 – BIND/DNS 80 – HTTP / Apache Web server 110 – POP3/EMAIL 143 – IMAP 443 – HTTPS / Apache Web server SSL 465 – SMTP/EMAIL SSL/TLS 873 – RSYNC 993 – IMAP/EMAIL SSL 995 – POP3/EMAIL SSL 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
For Alibaba Cloud customers, you can do that by Create a security group and Add security group rules to allow connections on these ports.
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 http://centos-webpanel.com/cwp-el7-latest && 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
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:
From the left menu, click on CWP Settings, then select Edit Settings.
Change your Admin Email, and if your server uses NAT Gateway, select the checkbox of Activate NAT-ed network configuration, then click Save Changes.
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 Alibaba Cloud 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.
For further details, see this tutorial: Custom DNS FAQs.
The following links may help you, if your domain is directly registered with one of the following domain registrars:
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.
2,624 posts | 720 followersFollow
Alibaba Clouder - August 2, 2019
Alibaba Clouder - December 18, 2017
Alibaba Clouder - August 22, 2018
Alibaba Clouder - September 30, 2018
Alibaba Clouder - May 21, 2018
Alibaba Clouder - April 27, 2018
I have the exactly same issue. Any solution?
i can not able to open the cwp, it shows me the the site send scrambled data that chrome could not proceed...normally uses encryption to protect your information. When Google Chrome tried to connect to SERVER IP this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be SERVER IP , or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Google Chrome stopped the connection before any data was exchanged.You cannot visit SERVER IP right now because the website sent scrambled credentials that Google Chrome cannot process. Network errors and attacks are usually temporary, so this page will probably work later.
2,624 posts | 720 followersFollow
An online computing service that offers elastic and secure virtual cloud servers to cater all your cloud hosting needs.Learn More
An on-demand database hosting service for MySQL, SQL Server and PostgreSQL with automated monitoring, backup and disaster recovery capabilitiesLearn More
Automate performance monitoring of all your web resources and applications in real-timeLearn More
More Posts by Alibaba Clouder
5810489192364189 May 13, 2020 at 8:19 am
i am using SAS from alibaba cloud whenever i tried to install cwp it gives error when try to install mail server. after that it stopped and nothing happens.