GICT knowledge base
Important cPanel Scripts and Uses
Published
Important cPanel Scripts and Uses
After the installation of cPanel/WHM, the cPanel provided scripts become available in your server’s “/usr/local/cpanel/scripts/” directory. You can run a cPanel script by entering its location on the command line.
# /usr/local/cpanel/script/upcp – To upgrade cPanel.
# /scripts/adduser wheel1 /home wheel@123 – To add a wheel user.
# /scripts/mysqladduserdb mysqluser password – To add a mysql user.
# /scripts/cphulkdwhitelist IP-ADDRESS – To whitelist an IP in Cphulkd.
# /scripts/cphulkdblacklist IP-ADDRESS – To blacklist an IP in Cphulkd.
# /scripts/removeacct username – To terminate a cPanel account.
# /scripts/suspendacct username – To suspend an account.
# /scripts/unsuspendacct username – To unsuspend an account.
# /scripts/editquota username 512M – To edit the cPanel user quota.
Service Management:
/scripts/restartsrv_*
You can replace any of the * symbol with any of the below mentioned services
eg: /scripts/restartsrv_apache
Apache – To restart Apache Web Server.
BIND – To restart the Bind nameserver software.
chkservd – To restart cPanle’s Tail Watch log processing service.
clamd – To restart the ClamAV antivirus software.
courier – To restart the Courier mail server.
cpdavd – To restarts cPanel’s WebDAV server.
cphulkd – To restart cPHulk.
cpsrvd – To restart the cpsrvd daemon.
crond – To restart the crond daemon.
dovecot – To restart the Dovecot mail server.
exim – To restart the Exim mail exchanger.
ftpd – To restart the configured FTP service (ProFTPd or Pure-FTPd).
httpd – To restart the Apache web server.
imap – To restart the IMAP server (Courier or Dovecot).
inetd – To restart the super-server daemon that manages Internet.
ipaliases – To restart the IP address aliasing software.
mailman – To restart Mailman.
mydns – To restart the MyDNS server.
mysql – To restart the MySQL database server.
named – To restart the BIND nameserver software.
postgres – To restart the PostgreSQL database service.
proftpd – To restart the ProFTPd server daemon.
pureftpd – To restart the Pure-FTPd server daemon.
spamd – To restart the Apache SpamAssassin daemon.
sshd – To restart the Secure shell daemon.
tailwatchd – To restart cPanel’s TailWatch log processing service.
tomcat – To restart the Apache Tomcat service.
# /scripts/realperlinstaller – To install CPAN/perl modules extensions.
# /scripts/phpextensionmgr – To install PHP extensions.
EAccelerator
IonCubeLoader
Zendopt
Xcache
SourceGuardian
PHPSuHosin
The above mentioned are some of the available PHP extensions. To install an extension use the exact name.
eg : /scripts/phpextensionmgr install IonCubeLoader – To install an extension.
#/scripts/phpextensionmgr uninstall IonCubeLoader – To uninstall an extension.
# /scripts/installruby – To install Ruby.
# /scripts/convert2courier – To switch to Courier IMAP server.
# /scripts/convert2dovecot – To switch to Dovecot IMAP server.
# /scripts/gencrt – To generate CSR and Certificate file.
# /scripts/ipusage – To check the usage of IP addresses.
# /scripts/restorepkg – To restore backup
# /scripts/whoowns – To know the cPanel username of a domain.
# /scripts/updateuserdomains – To update the user:owner and user:domain tables stored in /etc/userdomains and /etc/trueuser(owner, domains)
# /scripts/pkgacct – To genarate the backup of a cPanel account.
# /scripts/migrate_ea3_to_ea4 –run – To upgrade EasyApache3 to EasyApache4
# /scripts/migrate_ea3_to_ea4 –revert –run – To downgrade EasyApache4 to EasyApache3.
Please do reach our support department if you need any further help.
Related guides
Host Additional Domains on an Eligible InterServer Account
Check your hosting limits, choose a separate site or alias and use cPanel or DirectAdmin with deliberate DNS, content and certificate verification.
cPanelHardening Your cPanel Server: Beyond the Basics After CVE-2026-41940
Security is a moving target. With the recent discovery of CVE-2026-41940, it has become clear that just having a firewall isn't enough anymore.
cPanelcPanel and Plesk notice: Awstats,. Webalizer and Analog stats are being removed
Important Update: cPanel and Plesk Phasing Out Legacy Statistics Tools If you regularly check your website traffic through your hosting control panel, we have an...
cPanelThe dangers of shared licenses (in other words unofficial/cracked licenses)
Why Cracked cPanel Licenses Aren’t Worth the Risk: A Guide for InterServer Customers When you’re managing a server, every dollar counts.
