Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

WHM in Short

cPanel and WHM are one product with two interfaces. WHM is where the server administrator creates accounts, sets limits, and configures services. Each account then has its own cPanel login, where its owner manages mail, files, databases, and domains. You do not install WHM separately: it comes with every cPanel installation.

WHM and cPanel Compared

WHMcPanel
Who logs inroot and resellersAn account owner
ScopeThe whole serverOne account
Default port20872083
Typical tasksAccounts, packages, servicesMail, files, databases

Root and Reseller Access

  • root: sees every WHM feature and every account on the server.
  • Resellers: log in to WHM with their own user and see a limited set of features, chosen by root, for the accounts they own. This lets an agency give a partner control over its own clients without server-wide rights.

Root can also switch to any account's cPanel from WHM without knowing that account's password.

Common Tasks in WHM

  • Accounts: create, suspend, and remove cPanel accounts, each with its own domain and system user.
  • Packages: templates of disk, bandwidth, and feature limits applied to accounts.
  • DNS: edit the zones of hosted domains and set the nameservers.
  • Services: enable, restart, and monitor the web, mail, database, and FTP services.
  • PHP and Apache: choose PHP versions and modules with EasyApache 4 and MultiPHP Manager.
  • Backups and transfers: schedule account backups and copy accounts from another server.
  • Updates and security: set update preferences, manage SSL certificates, and turn on two-factor authentication.

Logging In

Open https://your_server_ip:2087 or the server's hostname on port 2087, and log in as root or as a reseller. The browser may warn about the certificate until the hostname has a valid one. If the page does not load, check that port 2087 is open in the server's firewall and in your provider's firewall.

WHM controls the whole server, so protect it as you would SSH: use a long, unique root password, turn on two-factor authentication, and limit access by IP address where you can. SSH itself is covered in how to change the SSH port.

WHM from the Command Line

Most WHM functions are also available on the server through the WHM API:

sudo whmapi1 listaccts
sudo /usr/local/cpanel/scripts/upcp

The first lists all accounts; the second runs a cPanel and WHM update by hand. Scripts and automation tools use the same API, and API tokens created in WHM let a script call it remotely over port 2087 without the root password.

cPanel and WHM keep their own configuration and regenerate many service files, such as the web server's. Make changes through WHM or its documented include files rather than editing generated files by hand, or the next update or rebuild can overwrite them.

Who Needs WHM

WHM is useful when one server holds sites for several owners, such as an agency's clients, or when you want each site isolated in its own account with its own limits. For a single application you deploy yourself, a panel adds more than it saves.

Installing cPanel and WHM

cPanel and WHM install on a fresh supported Linux server; the steps are in how to install cPanel and WHM. To weigh it against another panel, see cPanel vs Plesk and what is Plesk.

Was this answer helpful?
Loading...