How to update WHM’s Basic WebHost Manager from command line

You need to update the following file:

/etc/wwwacct.conf

Output example:

NS 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

Read the rest

cPanel whmapi1 modifyacct notes

Example of the command:

whmapi1 modifyacct user=XXXX QUOTA=XXXX

Some popular parameters:

BWLIMIT=unlimited
QUOTA=unlimited
CGI=y
CPMOD=paper_lantern
DIGESTAUTH=n
FEATURELIST=default
HASSHELL=n
MAXADDON=unlimited
MAXFTP=unlimited
MAXLST=unlimited
MAXPARK=unlimited
MAXPOP=unlimited
MAXSQL=unlimited
MAXSUB=unlimited
MAX_DEFER_FAIL_PERCENTAGE=100
MAX_EMAILACCT_QUOTA=unlimited
MAX_EMAIL_PER_HOUR=100
FRONTPAGE=n
IP=n
LANG=en
domain=domain.com
user=cpaneluser
MAX_DEFER_FAIL_PERCENTAGE=5
MAX_EMAILACCT_QUOTA=100
BACKUP=0
HASCGI=1
FEATURELIST=featurelist
OWNER=owner
HASDKIM=1
HASSPF=1
[email protected]
Read the rest

How to disable Mailman archiving

Sudenly you may find that your mailing list archive has grown too large.

So you need to decide if you’re really need to keep your archives and if not then go ahead and disable it:

- Login your cPanel 
- 'Maillist'
- select your mail list
- 'Archiving Options'
- set 'Archive messages?'
Read the rest

Enable SpamAssassin globally for all users

You can either go ahead over WHM –> Exim Configuration Manager –> Apache SpamAssassin Options –> Apache SpamAssassin™: Forced Global ON set to ON

or simply touch a file:

 touch /etc/global_spamassassin_enable

Now you have got SpamAssassin enabled for all users with default score 5

The default 5 score can be overwritten over by a user via /home/USER/.spamassassin/user_prefsRead the rest

How to install/reinstall mailman on cPanel server

Check Tweak Settings, should be ‘0’

cat /var/cpanel/cpanel.config |grep skipmailman

skipmailman=0

Deprecated scripts

/scripts/reinstallmailman
/usr/local/cpanel/bin/mailman-install --force

To install mailman run the following:

/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.mailman installed
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman

Run upcp:

/scripts/upcp --force
systemctl start mailman.service

Job for mailman.service failed because a configured resource limit was exceeded.

Read the rest

cPanel error. Horde is unavailable while the system is being upgraded. HTTP error 503

Make sure hostname is good:

/usr/local/cpanel/scripts/check_valid_server_hostname

Did you run /scripts/upcp –force? If not do it.

/scripts/upcp --force

If you run it already, run it again as I got this fixed after the second run.

If still not working:

cd /var/cpanel/.application-locks
rm -fv UpdateHostname\:USERNAME
/usr/local/cpanel/bin/update_horde_config --user=USERNAME

where USERNAME is cPanel username.… Read the rest