How to Install CentOS Web Panel (CWP) on Linux
Install the free CentOS Web Panel (CWP) control panel on a Linux VPS over SSH, then log in to manage websites, email and DNS.
In this tutorial, we will be installing CWP on a Linux Centos server and I will try to make the tutorial as easy as possible, we are going to use the free plan which offers:
(Some features are only available in CWP Pro, a paid upgrade.)
– Apache Web Server (Mod Security + Automatic updated rules optional) – PHP 5.6 (suPHP, SuExec + PHP version switcher) – MySQL/MariaDB + phpMyAdmin – Postfix + Dovecot + roundcube webmail (Antivirus, Spamassassin optional) – CSF Firewall – File System Lock (no more website hacking, all your files are locked from changes) – Backups (optional) – AutoFixer for server configuration – CloudLinux + CageFS + PHP Selector – Softaculous – Script Installer (Free and Premium) – LiteSpeed Enterprise (Web Server) – Setups Server for Web Hosting (websites like WordPress…) – API for easier account management, and billing API – NAT-ed version, support for NAT-ed IPs
Notes:
There is no uninstaller for CWP After you install CWP, you must reinstall the server to remove it. It only supports static IP addresses. It do not support dynamic, sticky, or internal IP addresses. Only install CWP on a freshly installed operating system without any configuration changes For best performance We suggest you order a VPS or Dedicated servers from eFlame.
System Requirements
Make sure that you complete the following tasks before you start the installation process:
1. Setup Hostname:
hostname srv1.example.com2. Software Requirements
You must have a clean/fresh installation of supported operating systems:
CentOS 6, RedHat 6 or CloudLinux 6, MINIMAL installation and English version only!
NOT Recommended for the new installations as we don’t develop new features for it
CentOS 7 minimal is recommended version. (RECOMMENDED)
The best version to be used with CWP as it provides the most features and CWP Secure Kernel.
CentOS 8 (Stream) is also supported.
We have our custom repositories making CentOS 8 Stream a stable version.
3. Hardware Requirements
64 bit operating systems require a minimum of 1024 MB RAM (recommended).
Recommended System: 4 GB+ RAM so you would have the full functionality such as Anti-virus scan of emails
1. Preparing Server:
yum -y install wgetFor CentOS 8, you may need to install the EPEL repository to be able to install tools like wget:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install wget -y2. Server Update:
yum -y update3. Reboot Server:
rebootInstallation
Now you are ready to start CWP Installation CWP installer can run more than 30 minutes because it needs to compile apache and php from source.
CentOS 6: New Installer with MARIA-DB 10-latest (NOT recommended)
cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latestCentOS 7: Installer for CentOS 7 (recommended)
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el7-latest
sh cwp-el7-latestCentOS 8: Installer for CentOS 8
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sh cwp-el8-latestOptionals
Available long name arguments:
--restart yesfor an automatic restart after a successful install--phpfpm [5.3|5.4|5.5|5.6|7.0|7.1|7.2|7.3|7.4](you can use only one)--softaculous yesto install Softaculous, the script installer
Available short name arguments
-r yesfor an automatic restart after a successful install-p [5.3|5.4|5.5|5.6|7.0|7.1|7.2|7.3|7.4](you can use only one)-s yesto install Softaculous, the script installer
Example for centos 7 (you can combine short and long name arguments)
sh cwp-el7-latest -r yes --phpfpm 7.3 --softaculous yesAny of these additions can also be installed later from the CWP GUI.
Reboot Server
Reboot your server so that all updates can take effect and CWP gets started.
rebootCloud Linux Optional (You need a license to use it)
wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k YOUR-KEY
cd /usr/local/src/
wget https://dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh
sh cloudlinux.shAfter CloudLinux installer is done it will automatically reboot the server! After reboot, you need to build CageFS and enable it
/usr/sbin/cagefsctl --init
cagefsctl --enable-allConfiguration
Log in to your CWP server using the link provided by the installer on your server.
- Control WebPanel Admin GUI:
http://SERVER-IP:2030/ - Username:
root - Password: your root password
Then set up the root email, set up at least one hosting package (or edit the default package), and set the shared IP, which must be your public IP address.
Setup nameservers And now you are ready to host domains.
