CPanel Scripts: Difference between revisions
Line 13: | Line 13: | ||
<code>/usr/local/cpanel/bin/checkallsslcerts</code> - Checks All SSL certificates. | <code>/usr/local/cpanel/bin/checkallsslcerts</code> - Checks All SSL certificates. | ||
Mail sizes showing incorrectly? Try this:<br /> | |||
'''Mail sizes showing incorrectly?''' Try this:<br /> | |||
<code>/scripts/generate_maildirsize --confirm --allaccounts --verbose $USER</code> | <code>/scripts/generate_maildirsize --confirm --allaccounts --verbose $USER</code> | ||
Check RPMs and possibly re-install:<br /> | |||
'''Check RPMs''' and possibly re-install:<br /> | |||
<code>/scripts/check_cpanel_rpms</code> | <code>/scripts/check_cpanel_rpms</code> | ||
'''Database Grants'''<br /> | |||
Weird database permission/authentication issues? Try restoring the database grants:<br /> | |||
<code>/usr/local/cpanel/bin/restoregrants --cpuser=$cpuser --db=mysql --all</code> |
Revision as of 00:22, 3 November 2017
cPanel has a bunch of scripts in the /scripts
folder.
For most of them, you can run: /scripts/script_name_here --help
to see what the script does. (Except for upcp... --help is not available for it.)
Scripts
/scripts/whowns domain.com
- Tells you which cPanel account owns the specified domain.
/scripts/upcp --force
- Updates cPanel (use with caution)
/scripts/pkgacct user
- backs up the entire specified cPanel account, including databases, e-mail, settings, etc. Replace "user" with the cPanel username to backup.
/usr/local/cpanel/bin/checkallsslcerts
- Checks All SSL certificates.
Mail sizes showing incorrectly? Try this:
/scripts/generate_maildirsize --confirm --allaccounts --verbose $USER
Check RPMs and possibly re-install:
/scripts/check_cpanel_rpms
Database Grants
Weird database permission/authentication issues? Try restoring the database grants:
/usr/local/cpanel/bin/restoregrants --cpuser=$cpuser --db=mysql --all