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

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


Most Popular

CWP DNS Part 1 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6

After hosting my parent domain on CWP7.admin, I am getting dns error and i'm not able access my server using my server FQDN but i can access using my server IP.
So what can i do for that problem ?

Yes, you have to fix the error .

Environment Details:
Distro Name: CentOS Linux release 7.6.1810 (Core)
CentOS-Web Panel version: CWP7.admin
CWP version:
WebServer: Apache Only

1.Change Hostname Permanently:
# hostnamectl set-hostname hostnamectl Static hostname: Icon name: computer-vm Chassis: vm Machine ID: 7400071490ea4f7d931374824ad4b52c Boot ID: 6e1f2d76495d4b318c25c4a1195aa130 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-862.14.4.el7.x86_64 Architecture: x86-64 It also writes this information to the /etc/hostname file as well.
# cat /etc/hostname host.d…

CWP DNS Part 2 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6

7.Open Main Configuration file
# vi /etc/named.conf 12 options { 13 listen-on port 53 { any; }; 14 listen-on-v6 port 53 { ::1; }; 15 directory "/var/named"; 16 dump-file "/var/named/data/cache_dump.db"; 17 statistics-file "/var/named/data/named_stats.txt"; 18 memstatistics-file "/var/named/data/named_mem_stats.txt"; 19 recursing-file "/var/named/data/named.recursing"; 20 secroots-file "/var/named/data/named.secroots"; 21 allow-query { any; }; 33 recursion no; 34 35 dnssec-enable yes; 36 dnssec-validation yes; 54 zone "." IN { 55 type hint; 56 file ""; 57 }; 58 59 include "/etc/named.rfc1912.zones"; 60 include "/etc/named.root.key"; 61 …