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
   /usr/local/php/php.ini
   /usr/local/cwp/php71/php.ini

Part 4: CWP: Set the 'ServerName' directive globally 
     /usr/local/apache/conf/httpd.conf
     /usr/local/apache/conf/original/httpd.conf
ServerRoot "/usr/local/apache"
User nobody
Group nobody
ServerAdmin admin@datahead.biz
ServerName host.datahead.biz:80
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
   /usr/local/apache/conf.d/vhosts/
   /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts
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 , http://dkimvalidator.com/ & https://www.mail-tester.com/ 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 1.7.5.1
Install libicu intl for Presta
Don't Forget to Fix the user account permission
Apache Compiler details: http://forum.centos-webpanel.com/apache/apache-compiler/
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 (postfixadmin.subdomain.com)
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 & https://www.mail-tester.com/ for header checking"
Postfix Tunning

Step 8:
MySQL Tunning
Secure Phpmyadmin

Step 9:
Roundcube

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:
SSH

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

Comments

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: 0.9.8.757
WebServer: Apache Only
FQDN: host.datahead.biz
IP: 192.120.10.3

1.Change Hostname Permanently:
# hostnamectl set-hostname host.datahead.biz# hostnamectl Static hostname: host.datahead.biz 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 "named.ca"; 57 }; 58 59 include "/etc/named.rfc1912.zones"; 60 include "/etc/named.root.key"; 61 …