Verify and sync the cPanel license
Website to verify the cPanel license https://verify.cpanel.net/app/verify Script to force sync the cPanel license inside the server: /usr/local/cpanel/cpkeyclt –force
Tips, tricks, how-to, tutorials – all about Information Technology – Since 2004
Website to verify the cPanel license https://verify.cpanel.net/app/verify Script to force sync the cPanel license inside the server: /usr/local/cpanel/cpkeyclt –force
This command will list all cPanel domain names, using WHM whmapi1 listzones command: whmapi1 listzones | grep domain: | awk {‘print $2’} 2. This command will list all cPanel domain names and their corresponding cPanel account cat /etc/domainusers 3. This is the command to find the cPanel account that owns a domain name: /scripts/whoowns exampledomain.com
How to list email count with sender information from the Exim mail queue ? Syntax: exim -bp|grep “<“|awk {‘print $4’}|cut -d”<” -f2|cut -d”>” -f1|sort -n|uniq -c|sort -nr Where: exim -bp : Is the base command to list all email in the mail queue with its details. grep “<” : To grep out the Sender address … Read more
The Linux hostname command is not enough, as it won’t change HELLO for Exim, or reset the SSL certificates. The good hostname script is: /usr/local/cpanel/bin/set_hostname The hostname need to be FQDN, in the format, for example: /usr/local/cpanel/bin/set_hostname host.exampledomain.com
List email accounts with uapi and grep uapi –user=cpanelusername Email list_pops | grep email Use find and replace in order to generate the bulk command replace “@domain.com” with “quota=2048 domain=domain.com” replace ” email:” with “uapi –user=cpanelusername Email edit_pop_quota email=” The final command will look like: uapi –user=cpanelusername Email edit_pop_quota email=user quota=0 domain=example.com
There are multiple methods to check the EXIM SMTP server version in cPanel. If the current version doesn’t match the version reported by the SMTP connection, consider restarting the EXIM service. Method 1: via API command whmapi1 installed_versions packages=1|grep exim Method 2: in WHM Go in WHM > Server Status > Service status
This is related to cPanel [CPANEL-23772] Pure-FTPd Couldn’t load the DH parameters file issue. Here is how to fix: openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048 /scripts/restartsrv_pureftpd Here are the default Cyphers for cPanel FTP server: HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3
/usr/local/cpanel/bin/checkallsslcerts The system runs the /usr/local/cpanel/bin/checkallsslcerts script during the nightly cPanel & WHM update (upcp) process. This script performs the following actions: Installs a cPanel-signed hostname certificate on the server, if one does not exist. Updates the SSL certificate for all cPanel & WHM services. Issues a Comodo signed SSL certificate on any server with … Read more