DNS recursion attacks are common in cPanel linux servers. During recursion attcks server load increases and in the /var/log/messages file you will find domain queries which are not present in the server. Fix ** Add this to the "options" section of /etc/named.conf recursion no; additional-from-auth no; additional-from-cache no;
Category: cPanel
email ip does not change in /etc/mailips issue
Firstly found that there was lsattr set for the file. Tried by removing and resetting the lsattr but no use. Fix Found that in whm exim config settings this should be like this Send mail from account’s dedicated IP address Off Reference /etc/mailhelo for outgoing SMTP HELO Off Reference /etc/mailips for outgoing SMTP connections On … Continue reading email ip does not change in /etc/mailips issue
How to Change cPanel Theme via command line
If you need to change all cpanel account themes, you can use this command as root: # replace RS=oldtheme RS=newtheme — /var/cpanel/users/* This will change all the cpanel users theme, if you need to change only one account, # cd /var/cpanel/users/ # vi user_account and replace the “RS=” line
Install ssl for addon using dedicated ip in a cPanel Server
It's not directly possible from WHM inteface. But you can manaully edit the cpanel config files and assign dedicated IP for the addon domain and then install the SSL Edit the file Code: /var/cpanel/userdata/username/addon-domain.com also checkl file /var/cpanel/userdata/username/addon-domain.com_ssl and change the IP to a dedicated IP. Also edit the DNS entires for the addon domain … Continue reading Install ssl for addon using dedicated ip in a cPanel Server
mod_fcgid: HTTP request length 139264 (so far) exceeds MaxRequestLen (131072)
Increase the value of MaxRequestLen in /usr/local/apache/conf/includes/post_virtualhost_global.conf MaxRequestLen XXXXX XXXXX is the desired value If the above doesn’t work in case of a particular domain, then add the above in the respective domain’s virtual host entry.
To setup python environment in CloudLinux
The Setup Python App icon is a third party plugin from CloudLinux .The interface will be shown as disabled by default. In order to enable the Setup Python App you will need to use the following instructions: - Login to WHM - Navigate to: Home »Server Configuration »CloudLinux LVE Manager - Select the Options tab … Continue reading To setup python environment in CloudLinux
Default FTP account showing incorrect login even though cPanel can be accessed.
Fix This was fixed by using following cPanel script. /scripts/ftpupdate
To check who has deleted the email account in a cPanel server
This can be easily understood from the cPanel access logs. grep domain.com /usr/local/cpanel/logs/access_log | grep delpop
Issue with cPanel not listing email accounts
Fix In these cases cd /home/user/.cpanel Remove the following files in it rm -rf email_accounts.cache email_accounts_count email_accounts.yaml email_accounts.yaml.lock Login to cPanel again The cache file will be created automatically
Enable HTTP/2 support on EasyApache4
EasyApache 4 adds quite a lot of HTTP/2 support from apache version 2.4.25-10". Install "mod_http2" package using below command to enable HTTP/2 support on EA4 server. yum install ea-apache24-mod_http2.x86_64 You can verify the status using below command. /opt/cpanel/libcurl/bin/curl -I --http2 -v http://domain.com