WHM setup and hardening is a one-time security and tuning pass on a cPanel & WHM server: SSH access, firewall, brute-force protection, ModSecurity, malware scanning, outbound mail limits and PHP and MySQL settings. It is for hosts whose server went live on installer defaults and now carries paying customers, including those whose WHMCS sits in a cPanel account on the same machine. Prices start at $149 per server.
Need cPanel installed and connected to WHMCS first? That is cPanel installation and WHMCS integration. Protecting the WHMCS application itself (admin login, checkout, API) is WHMCS firewall and brute-force protection, and a written review with severity ratings is the WHMCS security audit. If you would rather move billing off cPanel entirely, see WHMCS server setup.
Where we start
We run WHM's Security Advisor and record what the server exposes: listening services, how root can log in, PHP versions past their end of life, and which accounts have shell access. That list becomes the before half of your handover report.
Who can log in
- SSH keys for root and staff, with password logins turned off through the SSH Password Authorization Tweak
- Two-factor authentication for root and reseller WHM logins, with API requests exempted under Security Center » Configure Security Policies so WHMCS can still create and suspend accounts
- cPHulk Brute Force Protection tuned, with your office address and the WHMCS server added to its allow list. WHMCS lists brute-force blocks as a cause of cPanel module login failures, and a busy provisioning day should not lock billing out of its own server
- Host Access Control limiting WHM's port 2087 to fixed staff addresses where you have them
Firewall after CSF
For years the default answer on cPanel was ConfigServer Security & Firewall. ConfigServer closed on August 31, 2025 and released CSF under GPLv3, and community forks have carried it on since. We agree the route with you: a maintained CSF fork, the firewall in Imunify360 if you license it, or firewalld alongside cPHulk. Whichever you choose, the rules open only what customers use (web, mail, the cPanel, WHM and webmail ports, FTP if you sell it) and allow your WHMCS server through.
Web and PHP
- ModSecurity with the OWASP Core Rule Set from WHM's ModSecurity Vendors page, and false positives on WordPress admin screens or your WHMCS checkout disabled rule by rule, never by switching the engine off
- PHP-FPM for accounts, end-of-life PHP versions removed or limited to the accounts that still need them, and disable_functions set in MultiPHP INI Editor
- Shell Fork Bomb Protection, compilers restricted with Compiler Access, and jailed shells for customers who have SSH; CageFS as well if the server runs CloudLinux
- /tmp mounted noexec with cPanel's securetmp script
- Malware scanning with ImunifyAV, which is free in cPanel, or Imunify360 if you pay for it
Outbound mail
A single hacked contact form can push enough spam through Exim to get the server's IP blocklisted, and then every customer's mail bounces. We turn on SMTP Restrictions so only the mail server sends, set Max hourly emails per domain and stop the nobody user from sending in Tweak Settings, confirm the hostname's PTR record, and fix SPF and DKIM through Email Deliverability.
Database, backups and updates
- MySQL or MariaDB memory settings sized to the server, remote database access closed unless you need it, and the slow query log on
- WHM backups going to remote storage on a schedule, with one account restored as proof
- Update Preferences on an automatic tier you choose, and Contact Manager alerts sent to an inbox someone reads
What you receive
A short report listing each finding, what we changed and anything we left alone on purpose, such as a module a customer depends on. Changes that restart Apache or Exim happen in a maintenance window you pick.
What we need from you
- Root SSH and WHM access
- The IP addresses to allow: staff, the WHMCS server and any monitoring
- Licenses for Imunify360 or CloudLinux, if you want those used
Pricing
| Scope | Price |
|---|---|
| One cPanel & WHM server, everything above | From $149, one-time |
| Servers with many sites needing ModSecurity exceptions, or a CloudLinux or Imunify360 rollout | Fixed quote after scoping |
| Further servers, or follow-up changes | Quoted per server, or $65 per hour |
Not included
- Cleaning a server that is already compromised, which starts with an investigation; our guide on what to do when WHMCS is hacked covers the first hours
- Licenses for Imunify360, CloudLinux or LiteSpeed
- Round-the-clock monitoring and patching, available through monthly maintenance
Hardening a live server is done in small steps, each tested against a real customer site, so nothing you sell stops working while the defaults are replaced.