• Created on:2021-08-22 18:19:28
  • How to install Centos Web Panel (CWP) (Free Web Panel)

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:

(However, some features are not available to free users, you may need to buy CWP Pro in order to enjoy the full services, its cheap!)

– 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 whmcs 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.com

2. 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 wget (For CentOS 8:) 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 -y

2. Server Update:

yum -y update

3. Reboot Server:

Reboot

Installation

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-latest

CentOS 7: Installer for CentOS 7 (recommended)

cd /usr/local/src wget http://centos-webpanel.com/cwp-el7-latest sh cwp-el7-latest

CentOS 8: Installer for CentOS 8

cd /usr/local/src wget http://centos-webpanel.com/cwp-el8-latest sh cwp-el8-latest

Optionals

Available long name arguments –restart yes (for automatic restart after successfull 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 yes (install softaculous – script installer)

Available short name arguments

-r yes (for automatic restart after successfull 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 yes (install softaculous – script installer)

Example for centos 7 (you can combine short and long name arguments)

sh cwp-el7-latest -r yes --phpfpm 7.3 --softaculous yes Any of this additionals can be also installed later from cwp gui.

Reboot Server Reboot your server so that all updates can take effect and CWP gets started.

Reboot

Cloud Linux Optional (You need a license to use it)

# wget //repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy # sh cldeploy -k YOUR-KEY # cd /usr/local/src/ # wget //dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh # sh cloudlinux.sh

After 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-all

Configuration

Log in to your CWP server using the link provided by the installer on your server. Control WebPanel Admin GUI at http://SERVER-IP:2030/ Username: root Password: YOUR_ROOT_PASSWORD Setup root email Setup at least one hosting package Or edit default package. Setup shared IP Must be your public IP address.

Setup nameservers And now you are ready to host domains.