Automate, Configure, and Troubleshoot with cPanel Scripts
To use these scripts, you'll need root access. Navigate to the /scripts directory via SSH:
cd /scripts
Here’s what you can do with some of the common scripts:
addns: Add a DNS zone
addpop: Create a POP account
addservlets: Enable JSP support (requires Tomcat)
adduser: Add a new user
autorepair: Automatically fix services
biglogcheck: Identify logs nearing 2 GB
buildeximconf: Rebuild exim.conf
chpass: Change an account password
cleansessions: Remove session files
cpbackup: Backup all accounts
cphulkdwhitelist: Whitelist an IP address
cphulkdblacklist: Blacklist an IP address
easyapache: Recompile or upgrade Apache/PHP
fixmailman: Resolve Mailman issues
fixndc: Fix rndc errors
fixquotas: Correct quota problems
initquotas: Initialize quotas
installzendopt: Install Zend Optimizer
mailperm: Fix mailbox permission issues
pkgacct: Backup an account
restartsrv: Restart services
restorepkg: Restore an account from a backup
runlogsnow: Update user logs
runweblogs: Refresh stats for a specific user
securetmp: Secure /tmp partition
setupftpserver: Configure the FTP server
simpleps: View process list
sysup: Update RPMs
suspendacct: Suspend an account
unsuspendacct: Unsuspend an account
upcp: Update cPanel
updatenow: Update cPanel scripts
updateuserdomains: Update user domain entries