Here are the cPanel scripts available for automating tasks, configuring settings, resolving issues, or installing components. To execute these scripts, you must have root access. The scripts can be found in the /scripts
directory.
Just login as root through SSH. Browse to /scripts directory:
Here are some common scripts and their functions:
addns
: Adds a DNS zone.
addpop
: Adds a POP email account.
addservlets
: Adds JSP support (requires Tomcat).
adduser
: Adds a system user.
autorepair
: Starts automatic service repair.
biglogcheck
: Finds logs nearing 2 GB in size.
buildeximconf
: Rebuilds Exim configuration.
chpass
: Changes a user’s password.
cleansessions
: Removes session files.
cpbackup
: Backs up all accounts.
cphulkdwhitelist
: Whitelists an IP address.
cphulkdblacklist
: Blacklists an IP address.
easyapache
: Recompiles/upgrades Apache and PHP.
fixmailman
: Fixes common Mailman issues.
fixndc
: Fixes rndc errors with named.
fixquotas
: Fixes quota problems.
initquotas
: Initializes quotas.
installzendopt
: Installs Zend Optimizer.
mailperm
: Fixes mailbox permission issues.
pkgacct
: Backs up a specific account.
restartsrv
: Restarts services.
restorepkg
: Restores an account from a backup.
runlogsnow
: Updates logs for all users.
runweblogs
: Updates web stats for a specific user.
securetmp
: Secures the /tmp
partition.
setupftpserver
: Sets up the FTP server.
simpleps
: Shows process list.
sysup
: Updates RPM packages.
suspendacct
: Suspends an account.
unsuspendacct
: Unsuspends a suspended account.
upcp
: Updates cPanel to the latest version.
updatenow
: Updates cPanel scripts.
updateuserdomains
: Updates user domain entries.