cPanel Scripts

Common useful cPanel scripts


Suspending & Unsuspending accounts :

/scripts/suspendacct [username]
/scripts/unsuspendacct [username]

Increase an accounts disk quota (example to 2048MB) :

/scripts/editquota [username] 2048M

What cPanel user own's the domain, ie addon/alias domain :

/scripts/whoowns [domain]

Missing database not visible in cPanel:

/scripts/update_db_cache
/usr/local/cpanel/bin/setupdbmap

Recalculate mailbox sizes for one user:

/scripts/generate_maildirsize --confirm --allaccounts --verbose [username]

Reset User Quotas back to their orginal plan values (use with caution!) :

/scripts/fixquotas

Rebuild the Apache main config file:

/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd

Rebuild Named.conf file :

/scripts/rebuildnamedconf

Restarting Services Gracefully

Services on a cPanel server should ALWAYS be restarted using the default cPanel scripts.
Checkout our article here: Restarting cPanel Services


Supported By Cosmos Hosting