How to check bandwidth usage for user on cPanel serve from command line
To see user’s bandwidth for certatin period run next:
whmapi1 showbw searchtype=user search=Username year 2022 month 2
Enjoy!… Read the rest
Notes
To see user’s bandwidth for certatin period run next:
whmapi1 showbw searchtype=user search=Username year 2022 month 2
Enjoy!… Read the rest
Run the following to change your master domain:
whmapi1 modifyacct user=USERNAME domain=NEWDOMAIN.COM
Enjoy!… Read the rest
Run and put your domain:
read -p "Domain: " domain; username=`/scripts/whoowns $domain`; email=`grep @ /var/cpanel/users/$username |tail -n1 |cut -d '=' -f2|sed -e 's/@/\%40/'`; whmapi1 generatessl domains=$domain countryName=US stateOrProvinceName=Texas localityName=Houston organizationName="The Justice League of GG" emailAddress=$email pass=`openssl rand -base64 15` keysize=2048 skip_certificate=0
Now use WHM to install it
Enjoy!… Read the rest
Useful if you have plan limited by:
– limitation by amount of cPanel accounts
– bandwidth limitation
– disk space limitation
– overselling disabled
Update reseller’s packages with new limits via command line
sed -i -e "s/QUOTA=.*/QUOTA=2000/g" /var/cpanel/packages/resellerusername_* sed -i -e "s/BWLIMIT=.*/BWLIMIT=20000/g"… Read the rest
This may occur because of UTF8 formatting was not enabled
– Navigate to cPanel –> Email –> Email Accounts.
– Select Manage next to the “Default” account.
– Enable the toggle under “UTF-8 Mailbox Names”.
You may also inspect Roundcube interface setting for UTF8 formatting enabling… Read the rest
Find rmlist binary file under /usr/local/cpanel/3rdparty/mailman/bin folder
For more info run:
[email protected] [/usr/local/cpanel/3rdparty/mailman/bin]# ./rmlist --help
… Read the restUsage:
rmlist [-a] [-h] listnameWhere:
–archives
-a
Remove the list’s archives too, or if the list has already been
deleted, remove any residual archives.–help
-h
Print this help message and exit.
Recently I faced that vc_list_store is missed for just restored account as result a client got their Git repositories empty
I have found that .cpanel/datastore in Jetbackup exclude list, it seems because they skip .cpanel/datastore by default at their doc page:
https://docs.jetbackup.com/manual/whm/BackupJobs/excludeFiles.html… Read the rest
Symptom, In messages body you permanently getting the following:
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for information.
You need to either stop using free DNS resolvers, for example like:
[email protected] [~]# cat /etc/resolv.conf nameserver 8.8.8.8 nameserver 1.1.1.1
Or update your SpamAssassin configuration as the following:
echo "dns_server 127.0.0.1 # added to fix blocking of URIBL and DNSWL queries" >> /etc/mail/spamassassin/local.cf… Read the rest
You need to update the following file:
/etc/wwwacct.conf
Output example:
… Read the restNS yournameservhere.com
CONTACTEMAIL
HOMEDIR /home
ETHDEV eth0
NS4
SCRIPTALIAS y
NSTTL 86400
ADDR6
TTL 14400
HOST yourhostnamehere.com
LOGSTYLE combined
CONTACTPAGER
DEFMOD paper_lantern
ADDR 11.22.33.44
NS2 yournameservhere2.com
DEFWEBMAILTHEME paper_lantern
HOMEMATCH home
NS3 yournameservhere3.com