System Requirements
Complete the following tasks before starting the installation process:
1. Setup Hostname
- Check status of current hostname
hostname
or
hostnamectl
- Command for changing hostname
hostname server.domain.com
- Edit /etc/hostname
vi /etc/hostname
Change old hostname to new server.domain.com
- Edit the /etc/hosts File
sudo vi /etc/hosts
Change the old hostname the new one.
- Reboot the server
Login SSH and check the hostname
hostnamectl status
2. Server Updates
- Preparing Server
Let’s install required packages for CWP installation
yum -y install wget
- Server Update
Now we need to update your server to the latest version
yum -y update
- Reboot Server
Reboot your server so that all updates can take effect.
reboot
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
Reboot your server so that all updates can take effect and CWP gets started.
shutdown -r now
CentOS Web Panel Configuration
Log in to your CWP server
CentOS WebPanel Admin GUI at http://SERVER-IP:2030/
Username: root
Password: your root password
- WARNING! Your root Email address for notifications isn’t set.
Setup root email - Change Hostname: Server settings -> Change hostname from the left sidebar.
- – Setup nameservers: DNS Funtions>Edit Nameservers IPs
- – Setup shared ip (must be your public IP address)
- – Install “Limit server resources (cgroups)” under Security: Cgroups allow you to limit resources per user — such as CPU %, system memory, network bandwidth, or combinations of these resources.
- – Setup at least one hosting package (or edit default package)
& now you are ready to host domains…
For additional configuration instruction, please check our wiki/documentation site.
http://wiki.centos-webpanel.com/
- Firewall – SECURITY ISSUE
CSF/LFD Firewall is NOT enabled on your server, click here to enable it. - ModSecurity – SECURITY ISSUE
Mod Security is NOT enabled on your server, click here to enable it. - Hidden Processes – SECURITY ISSUE
Hide all processes if not owned by the user is NOT activated on your server, click here to enable it.
Install and Enable firewall
ConfigServer Security & Firewall (CSF) + Login Failure Daemon (LFD)
Security>Firewall manager
Install and Enable mod_security
Add a user account
User Accounts -> New Account
Install Softaculous (optional)
Script Installers->Scripts Manager->Softaculous
Install a Let’s Encrypt certificate for SSL-enabled CWP
Weberver Settings->ssl_certificate
How to change the default SSH Port 22 to your choice
WARNING: Security vulnerability!
Your server is using default SSH Port 22, to make your server more secure change SSH port in config file /etc/ssh/sshd_config and in CSF firewall !
After changes are done don’t forget to restart SSH and CSF Firewall.
- After login to CWP go to Services Config->SSH Configuration. This will open /etc/ssh/sshd_config
- Then go to Security->CSF Firewall, click the Firewall Configuration button. This will open /etc/csf/csf.conf
- Look for the #Allow incoming TCP ports section and add your port number to the list.
- Save changes
- On cwp dashboard, restart SSH server.
- Then go to Security->CSF Firewall, click the Firewall Restart button
Additional multiple php versions
Go to PHP Version Switcher and then click on PHP Selector
Install Dependencies
Increase file upload limit | CWP