{"id":3503,"date":"2009-02-27T18:05:30","date_gmt":"2009-02-27T23:05:30","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3503"},"modified":"2025-03-07T05:18:14","modified_gmt":"2025-03-07T10:18:14","slug":"ssh-cpanelwhm-command","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/ssh-cpanelwhm-command\/","title":{"rendered":"WHM\/cPanel Scripts and Commands for Efficient Server Management"},"content":{"rendered":"\r\n<h1 class=\"wp-block-heading\"><strong>Updated WHM\/cPanel Scripts and Commands for Server Management<\/strong><\/h1>\r\n\r\n\r\n\r\n\r\nManaging a cPanel\/WHM server requires various scripts and commands. Below is an updated list of essential WHM\/cPanel scripts, including legacy and modern commands, to help streamline administration tasks.\r\n\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><strong>Essential WHM\/cPanel Scripts and Commands<\/strong><\/h2>\r\n\r\n\r\n\r\n\r\nThese scripts and commands assist in managing user accounts, DNS, quotas, mail services, security, and overall server maintenance.\r\n\r\n\r\n\r\n\r\n<pre>\/scripts\/adddns - Add a DNS Entry\r\n\/scripts\/addfpmail - Install Frontpage Mail Extensions\r\n\/scripts\/addservlets - Add JavaServlets to an account (JSP plugin required)\r\n\/scripts\/adduser - Add a User\r\n\/scripts\/admin - Run WHM Lite\r\n\/scripts\/apachelimits - Add Rlimits (CPU and memory limits) to Apache\r\n\/scripts\/dnstransfer - Resync with a master DNS server\r\n\/scripts\/editquota - Edit a User's Quota\r\n\/scripts\/finddev - Search for Trojans in \/dev\r\n\/scripts\/findtrojans - Locate Trojan Horses\r\n\/scripts\/fixtrojans - Remove Trojans found in logs\r\n\/scripts\/fixcartwithsuexec - Make Interchange work with suexec\r\n\/scripts\/fixinterchange - Fix most problems with Interchange\r\n\/scripts\/fixwebalizer - Fix Webalizer stats issues\r\n\/scripts\/fixvaliases - Repair broken valias files\r\n\/scripts\/hdparamify - Enable DMA and 32-bit IDE hard drive access (once per boot)\r\n\/scripts\/initquotas - Re-scan quotas and fix disk space display issues\r\n\/scripts\/installzendopt - Install Zend Optimizer\r\n\/scripts\/ipusage - Display IP usage report\r\n\/scripts\/killacct - Terminate an account\r\n\/scripts\/killbadrpms - Remove security-risk RPMs\r\n\/scripts\/mailperm - Fix mail permission issues\r\n\/scripts\/mysqlpasswd - Change a MySQL password\r\n\/scripts\/quicksecure - Kill potential security problem services\r\n\/scripts\/rebuildippool - Rebuild the IP address pool\r\n\/scripts\/remdefssl - Remove problematic SSL entries from Apache\r\n\/scripts\/restartsrv - Restart a service (e.g., Apache, Exim, MySQL, SSHD)\r\n\/scripts\/rpmup - Sync security updates from RedHat\/Mandrake\r\n\/scripts\/runlogsnow - Force a Webalizer\/Analog update\r\n\/scripts\/secureit - Remove non-critical SUID binaries\r\n\/scripts\/suspendacct - Suspend an account\r\n\/scripts\/sysup - Sync cPanel RPM updates\r\n\/scripts\/unblockip - Unblock an IP address\r\n\/scripts\/unsuspendacct - Unsuspend an account\r\n\/scripts\/upcp - Update cPanel\r\n\/scripts\/updatenow - Update \/scripts\r\n\/scripts\/wwwacct - Create a new account\r\n\/scripts\/rebuilddnsconfig - Rebuild the DNS configuration\r\n\/scripts\/check_cpanel_rpms - Validate and repair cPanel-installed RPMs\r\n\/scripts\/restartsrv_* - Restart any cPanel service (e.g., \/scripts\/restartsrv_httpd for Apache)\r\n\/scripts\/cleansessions - Clear old cPanel &amp; WHM sessions\r\n\/scripts\/convert_mbox_to_maildir - Convert Mbox to Maildir format\r\n\/scripts\/fixquotas - Reset quotas and ensure proper usage reporting\r\n\/scripts\/pkgacct - Package an account for backup or transfer\r\n\/scripts\/restorepkg - Restore an account from a backup package\r\n\/scripts\/enable_spf_dkim - Enable SPF and DKIM for email authentication\r\n\/scripts\/rebuild_phpconf - Rebuild PHP configuration with the preferred handler\r\n\/scripts\/updateuserdomains - Refresh user domain mappings\r\n\/scripts\/autorepair - Run automated repair scripts for cPanel issues\r\n\/scripts\/setupmailserver - Install and configure the mail server (Exim, Dovecot, etc.)\r\n\/scripts\/fixeverything - Run multiple cPanel repair scripts in one command\r\n\/scripts\/whmapi1 - Use WHM API for advanced automation (e.g., whmapi1 listaccts)\r\n<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><strong>Final Thoughts<\/strong><\/h2>\r\n\r\n\r\n\r\n\r\nThese scripts and commands are essential for managing a WHM\/cPanel server efficiently. Regular updates and maintenance using the right commands ensure better performance and security. Keep this list handy for quick reference.\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>Stay updated with the latest WHM\/cPanel scripts and commands for seamless server management. This comprehensive list includes essential scripts for account management, security, DNS, mail services, and more. Whether you&#8217;re using legacy commands or modern automation tools, this guide ensures your cPanel\/WHM server runs efficiently.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-controlpanel"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3503"}],"version-history":[{"count":3,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3503\/revisions"}],"predecessor-version":[{"id":5053,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3503\/revisions\/5053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}