Skip to main content

CentOS WebPanel

CWP : Details Guide for Installation and Configuration
Step 1: CWP Installation Prerequisite
Part 1 Disable SeLinux
Part 2 Disable Firewalld
Part 3 Set Hostname Permanently
Part 4 Disable Network Manager & Set Static IP
Part 5 Install Chrony and Configure NTP server
Part 6 Set-Up Time Zone
Part 7 Install Latest EPEL Release

Step 2: CWP Installation & Configuration
How to Install CentOS WebPanel (CWP7.admin ) on CentOS 7.6
Part 1: CWP Basic Configuration after Fresh Installation
Part 2: CWP Basic Configuration after Fresh Installation

Part 3: CWP: Set 'date.timezone' in PHP.INI

Part 4: CWP: Set the 'ServerName' directive globally 
ServerRoot "/usr/local/apache"
User nobody
Group nobody
DocumentRoot "/usr/local/apache/htdocs"
    :x (save & quit)
Check CWPSRV syntax
# /usr/local/cwpsrv/bin/cwpsrv -t
cwpsrv:the configuration file /usr/local/cwpsrv/conf/cwpsrv.conf syntax is ok
cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test is successful
Check apache syntax
# /usr/local/apache/bin/apachectl -t
# /usr/local/apache/bin/apachectl configtest
# /usr/local/apache/bin/httpd -t

Step 3: DNS
Part 1 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6
Part 2 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6
Part 3 : How to Update ROOT Hints DNS ?
Part 4 : How to hide Nameserver software version on Centos 7
How to use GeoIP in Bind ? ( geoip-directory "/usr/share/GeoIP/";)

Step 4: Build Mail Server
Check Server FQDN (Server Settings >> Change Hostname)
Build Postfix mail Server (Email >> Mail Server Manager) with AntiSpam/AntiVirus and  DKIM & SPF
Enable SPF & DKIM for parent Domain (Email >> DKIM Manager) & Check also the below:
   TruestedHosts File Location: /etc/opendkim/TrustedHosts
   SigningTable File Location: /etc/opendkim/SigningTable
   KeyTable File Location: /etc/opendkim/KeyTable
Restart All Mail Server Services  (Email >> Mail Server Manager)
Update ClamAv Database  (Email >> Mail Server Manager)
Enable CSF Firewall and Restart all CSF
Install SpamHause (Email >> AntiSpam >> SpamHause )
Restart CSF
Script Installers >> Scripts Manager >> Install Softaculous
and (Reboot the Machine)

Step 5: User Panel Features
Login user account
Create few Sub-domain (support , erp, postfixadmin ...etc) , use directory /home/username/public_html/ and /home/username/sub-domain
Create few Email Account using parent domain
Create few Email Account using sub-domain (support)
Create Forwarder
Create Alias/Group for parent & sub-domain
Check AutoResponder
Install Wordpress on parent domain & Sub-domain & Visit
Install Some plugins to secure your WordPress Website
Install Auto SSL for subdomain from user panel , 
      If AutoSSL is not working Solution Link 1  Solution Link 2
Check Virtual Host File
Don’t forget to fix the permission from Admin Panel ( Go to User Account >>  Fix Permission )
Login to webmail for checking
Send email to Gmail , & for header checking

Step 5.1: Update PHP to 7.2.x 
Remove php ioncube using php addons
Update PHP-FPM to 7.2.x
Update suPHP to 7.2.x using PHP Selector 2
Update php to 7.2.x using PHP vesion switcher
Now Configure the WebServers main Conf and WebServer Domain Conf
Update datetimezone to all php.ini ( find / -name php.ini )
Now Install Presta CMS
Install libicu intl for Presta
Don't Forget to Fix the user account permission
Apache Compiler details:
Clear Cache Memory
#  sync; echo 1 > /proc/sys/vm/drop_caches && sync; echo 2 > /proc/sys/vm/drop_caches && sync; echo 3 > /proc/sys/vm/drop_caches

Step 6: Let'sEncypt SSL
1. Install Let'sEncypt for Server FQDN and also for Admin/User/Webmail
2. Configure Auto Renewal
3. CWP: Redirect Admin/User/Wemail panel from http to https
4. SSL Inconsistent server configuration [ Error: SSL_ERROR_RX_RECORD_TOO_LONG]
5. CWP: Auto_SSL is not working from both Admin/User Panel [Fixed]

Step 7: Install PostfixAdmin
Install PostfixAdmin 3.1 on subdomain (
Invalid query: Table 'postfix.vacation_notification' doesn't exist

Step 7.1: Postfix Tunning
For Spam Filtering : use DKIM, SPF, DMARC records
Repeat "send email to Gmail & for header checking"
Postfix Tunning

Step 8:
MySQL Tunning
Secure Phpmyadmin

Step 9:

Part 10: CSF
CWP: How to Enable GUI for CSF on CentOS 7?
CWP: How to Increase your Server Security using CSF Firewall on CentOS 7?
How to install CSF Webmin module on CWP in CentOS 7 ?

Part 11:

Part 12: Monit
How to monitor CWP Server Services using Monit on CentOS 7.6
How to Add Let's Encrypt SSL to Monit Server on CentOS 7.6 ?

Part 13: Webmin for CWP
1.How to Install Latest Webmin 1.90 on CentOS 7.6
2.How to Fix Webmin is Excited on CentOS 7.6
3.Getting error "pam_unix(webmin:auth): authentication failure" on Latest Webmin 1.9 on CentOS 7.6 [Fixed]
4.How to add Let's Encrypt SSL certificate to Webmin
5.How to Secure Webmin using Webmin GUI on CentOS 7
6.Install Latest Usermin on CentOS 7.6 core via Webmin