Article directory
how to installCWP Control Panel?
CENTES WEB PANEL configuration tutorial
Web PromotionVPS for personnelBuilding website, there are numerous free or paid control panels to choose from.When you don't know how to choose a full-featured VPS control panel, the CWP control panel is recommended.
What is CentOS Web Panel?
CWP control panel, designed for RPM based distributions (e.g. CentOS, RHEL, Scientific Linuxetc.) design.

It is a free and open source control panel that can be widely used to easily configure web hosting environments.
Unlike other control panels, CWP automatically deploys LAMP'ssoftwareand Varnish cache server.
Install CWP system requirements
- 32-bit server 512MB RAM
- 64-bit server 1024MB RAM
- Hard disk 10 GB
operating system
- CentOS 6.x, 7.x
- RedHat 6.x, 7.x
- CloudLinux 6.x, 7.x
To avoid any problems, be sure to read the entirety of this instructional tutorial carefully before the installation process.
- The CWP control panel only supports static IP addresses.
- The CWP control panel does not support dynamic or internal IP addresses.
- CWP Control Panel does not offer uninstallers.
- After installing CWP, you must reinstall the server to remove it.
- Installs CWP only on newly installed operating systems without any configuration changes.
CWP Control Panel Features
CWP has many features and free services.
likeChen WeiliangAs mentioned earlier, CWP will automatically install a full set of LAMP services (Linux, Apache, PHP,mysql,phpmyadmin,webmail, mail server, etc.).
The following are the features and services available on CentOS Web Panel:
- Currently includes admin and client panels
- (You can also request to build custom modules for integration)
Preparation for installing CentOS Web Panel (CWP)
If your VPS background, before installing the CentOS system, did not set the host name and IP address, you may need to manually set the host name and IP address.
set hostname
To start the CWP installation, log in to the Linux server as the root user. According to the instructions on the CWP official website, make sure to set the hostname first.
important hint:The hostname and domain name on the server must be different (for example, if domain.com is the domain name on your server, use hostname.domain.com as your hostname).

hostnamectl set-hostname hostname.domain.com hostnamectl
- Please change hostname.domain.com to your secondary domain name.
Set the server IP address
If the VPS server you are using has already set the server IP address, you can skip this step directly.
Otherwise, you may need toTo set the server IP address, we will usenmtui ( NetworkManager Text User Interface ) utility, which provides a graphical user interface to configure IP addresses by controlling Network Manager.
yum install NetworkManager-tui nmtui

Server update
Step 1:Install the wget package required to download CWP ▼
yum install wget -y
- If an error message appears after entering the above command, please reinstall the server and use the following command instead▼
yum install wget
Step 2:Use this command to update your server ▼
yum update -y
Step 3:Reboot once to activate the update ▼
reboot
Install the CWP program
There are 2 versions, please choose according to your CentOS version:
- Install the CentOS 6 version of CWP6
- Install the CentOS 7 version of CWP7 (recommended)
Install the CentOS 6 version of CWP6
Step 1:Go into /usr/local/src Catalog▼
cd /usr/local/src
Step 2:Use the command to download the latest CWP version ▼
wget http://centos-webpanel.com/cwp-latest
Step 3:If the above URL is wrong, please use the link below instead ▼
wget http://dl1.centos-webpanel.com/files/cwp-latest
Step 4:Use the command to start installing CWP ▼
sh cwp-latest
Install the CentOS 7 version of CWP7 (recommended)
cd /usr/local/src wget http://centos-webpanel.com/cwp-el7-latest sh cwp-el7-latest
- If the above URL is wrong, please use the link below instead ▼
http://dl1.centos-webpanel.com/files/cwp-el7-latest
CWP installation process example ▼

Chen Weiliang安装过程只花了5~10分钟的时间。 不是4G以上的网速,可能长达10分钟、30分钟或更长时间,具体取决于你的网络速度。
Finally, you will see the following installation complete message ▼

Step 5:Please record this important information such as:
- MySQL superuser password, CWP login URL because you will need it later.
Step 6:Then press Enter to restart the system ▲
Firewall/Route Configuration
The default web control interface ports for CWP are 2030 (HTTP) and 2031 (HTTPS).
You should allow these two ports to access the CWP web console remotely through the firewall/routing.
Step 1:Edit iptables file ▼
vi /etc/sysconfig/iptables
Step 2:Add the following ▼
[...] -A INPUT -p tcp -m state --state NEW -m tcp --dport 2030 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 2031 -j ACCEPT [...]
Step 3:First press ESC to exit editing, then enter ▼
:wq
Step 4:Update the iptables service for the changes to take effect.
service iptables restart
Login to CWP Control Panel
Open your browser and type:
http://IP-Address:2030/
or:
https://IP-Address:2031/
You will see a screen similar to the one below ▼

login authentication
- 用户 名:root
- 密码:your root password
Congratulations! CWP has been successfully installed.
CWP Control Panel Configuration
Next, we must give the CWP control panel some basic configuration, such as:
- Set up IP sharing (must be your public IP address)
- Set up a domain name server
- Set at least one managed package (or edit the default package)
- Set up root mail etc.
Create a shared IP and root email address
- This is a very important step in hosting your website on your host.
In order to create a shared IP, go to CWP Setting → Edit settings ▼

- Enter your static IP and email address
After setting, click Save Changes to save the changes▲
- After setting up a shared IP address, now you can start maintaining your website with CWP ^_^
Create a domain name server
- If you use another name server, such as: DNSPOD, please skip this operation.
To create nameservers, go to DNS Functions → Edit nameservers IPs ▼

After setting, click Save Changes to save the changes▲
Create a virtual hosting package
- A web hosting package is a web hosting plan that includes access to disk space, bandwidth, FTP accounts, email addresses, databases, and more.
- You can create as many web hosting plans as you want.
To create a virtual hosting plan, go to Packages → Add a Package Enter a name for the virtual host package.
Set the disk quotas allowed to be accessed, the number of processes, FTP, email accounts, databases and subdomains, etc... (personal use can be configured according to the following amounts)▼
Dsk Quota MB:102400Bandwith MB:10485760nproc:999999999apache_nproc:999999999nofiles:999999999inode:999999999- Click the Create button to create a virtual hosting plan▼

- nproc: Number of processes allowed per user (at least 10, since each instance of nginx/apache/fpm is started as a separate process).
- apache_nproc: See nproc above, but this is Apache-specific.
- nofiles: Number of open files allowed to be read/executed concurrently.
- inode: An inode is a data structure that stores information about all the files created on your hosting account. The inode count represents the number of files, folders, emails, or whatever you have stored on your web hosting account.
Add domain name
- To add a new domain name, you must have at least one user account.
Add user
To add a user, please go to User Account → New Account(Personal use can be configured according to the following amounts)▼
- Enter the domain name (chenweiliang.com), username, password and email address.
Inode:0Process limit:999999999Open files:999999999
Assuming that the VPS configuration is CPU 4 cores + 16GB memory, in order to avoid excessive load and affecting the operation of the website, it is recommended to set it to:
- nproc1000
- nofile 5000

- Finally, click
Create.
Add a domain name
To add a domain name, please enter Domains → Add Domain ▼

Enter the new domain name and specify the domain name associated with the username▲
- Before checking "AutoSSL",The condition is to set an A record for the domain name.
- First resolve the domain name to the server IP before the SSL certificate can be generated, otherwise an error will occur.
- AutoSSL automatically installs SSL security certificates,Very quick and easy!
- Click Create to use the CWP control panel to manage your domain name.
The CWP control panel displays the default page, please see this tutorial for the solution ▼
http redirect to https configuration, please check this tutorial ▼
- If the SSL certificate is generated incorrectly, please refer to this article to manually generate the SSL certificate.
If the CWP control panel is down and cannot be accessed, and you need commands to start/stop/restart/view the status of the CWP service, please check out this tutorial▼
After just installing the CWP control panel and restarting Apache, you may encounter some problems... The following is the solution▼
Conclusion
In this tutorial, we saw how to install and configure CentOS web pages to create a simple web hosting environment that is easy to install and use.
- even ifInternet marketingA novice can also set up a basic web hosting server in a few hours.
- Also, CWP is completely free and open source, try it out, you won't be disappointed.
More information about the CWP Control Panel you can find in the CentOS Web Panel Wikipage and Docs documentation.
Chen WeiliangCompare used CWP control panel andVestaCPPanel, it actually feels that the CWP control panel is more powerful and professional than the VestaCP panel.
If you want to install the VestaCP panel, please check this VestaCP panel installation tutorial▼
What to do after installing CWP
Step 1: On the left side of the CWP Control Panel, click WebServer Settings → Select WebServers ▼

Step 2:Choose Nginx & Varnish & Apache ▼

Step 3:Click the "Save & Rebuild Configuration" button at the bottom to save and rebuild the configuration.
Since the CWP free version is the default php5.6 version, this is easy to causeWordPress pluginor theme incompatible error.
Therefore, after installing CWP and selecting Nginx & Varnish & Apache services, we need to manually select the PHP 7.4.28 version.
How does the CWP control panel choose the PHP version?
The following isCWP control panel how to upgrade website PHP versionOperation steps:
Click on the left side of the CWP control panel → PHP Settings → PHP Version Switcher: Manually select the PHP 7.4.28 version ▼

After we install the CWP control panel, we may need to make these settings ▼
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "How to install CWP control panel? CENTOS WEB PANEL Configuration Tutorial" will help you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-652.html

















