Skip to content

Creating a cPanel account in WHM — the fields that matter and the ones that bite later

A field-by-field walkthrough of WHM Create a New Account: domain, package, dedicated IP, DNS, and the choices that are awkward to change after the account exists.

Creating a cPanel account is the most routine thing a WHM operator does, and most of the screen is self-explanatory. The parts worth slowing down for are the few choices that are cheap to set now and expensive to undo later: the username (cPanel will not rename it), the package (it carries quota, bandwidth, and feature list), whether the account gets a dedicated IP, and whether DNS is created locally or expected to live elsewhere. Get those four right and the rest is filling in a form.

What’s happening

WHM » Account Functions » Create a New Account runs createacct under the hood. That single call provisions a Linux user under /home, a primary domain and its DNS zone, an Apache/LiteSpeed vhost, a MySQL grant prefix, a mail domain in /etc/localdomains, and a quota — all bundled from the package you pick. The package is the spine of the account: it sets disk quota, bandwidth limit, max addon/parked/sub domains, max databases and mailboxes, the feature list, and the cPanel theme. If you create the account without a package (using the “Select Options Manually” path), those same values are set as one-off overrides that no longer track any package, which makes the account harder to manage in bulk later.

The username is derived from the domain unless you set it explicitly, and it is permanent — cPanel has no rename. The domain you enter becomes the primary domain; it cannot be removed without terminating the account, only supplemented with addon/parked domains. DNS is created locally by default, which is correct when this server is authoritative; if the zone lives at the registrar or a DNS provider, the locally created zone is dormant and you manage records there instead.

How to verify

Before creating, confirm the package exists and a feature list is attached, and that the domain is not already on the box:

# List packages and inspect the one you intend to use
whmapi1 listpkgs
whmapi1 getpkginfo pkg=starter

# Is the domain already hosted here? (must come back empty)
grep -w newsite.com /etc/userdomains /etc/localdomains
whmapi1 domainuserdata domain=newsite.com

# What dedicated IPs are free, if you plan to assign one?
whmapi1 listips | grep -i 'used\|dedicated'

To script the creation instead of using the form, createacct takes the same fields:

whmapi1 createacct \
  username=newuser \
  domain=newsite.com \
  plan=starter \
  contactemail=owner@newsite.com \
  pkgname=starter

After creation, confirm every piece landed:

# Account exists with the expected package and quota
whmapi1 accountsummary user=newuser
quota -u newuser

# DNS zone, vhost, and mail domain all present
ls -la /var/named/newsite.com.db
grep -w newuser /etc/userdomains
grep -w newsite.com /etc/localdomains

The fix / steps

  1. Pick (or create) the package first. Go to WHM » Packages » Add a Package if no package fits. Creating the account against a real package means quota, bandwidth, limits, and feature list all come from one editable place; later you change the package, reapply it, and every account on it updates. The manual-options path sets the same values as detached overrides — avoid it for anything you will manage at scale.
  2. Choose the username deliberately. cPanel does not support renaming an account, so a typo or a soon-to-change brand name means terminate-and-recreate. Keep it short, lowercase, and stable; do not encode the domain or client name if either might change.
  3. Enter the primary domain carefully. This is the one domain that cannot be removed without terminating the account. If the client’s “main” site is uncertain, pick the most permanent domain as primary and add the others as addon domains afterward, where they can be removed.
  4. Decide DNS placement. Leave Use the nameservers specified at the Domain’s Registrar unchecked when this server is authoritative — WHM writes the zone and you manage records in DNS Zone Manager. If DNS lives offsite, the locally created zone is inert; remember to create the matching A/MX records at the real DNS host or mail and web will not resolve.
  5. Assign an IP only if there is a reason. Most accounts share the server’s main IP and that is fine for HTTPS via SNI and AutoSSL. Choose a dedicated IP only for a specific need (a legacy SSL client, a deliverability-sensitive mail domain, an IP-allowlisted integration). Dedicated IPs are a finite resource — do not hand them out by default.
  6. Set a real contact email. This address receives quota warnings, AutoSSL failures, and suspension notices. A throwaway address here means the customer never learns their disk is full or their certificate lapsed. Use the owner’s monitored mailbox, not one inside the account being created.
  7. Confirm the mail routing. A new account defaults to Local Mail Exchanger — Exim delivers the domain’s mail on this box. If the domain’s mail lives at Microsoft 365 or Google Workspace, switch it to Remote Mail Exchanger in WHM » Edit MX Entry right after creation, or the first message will be delivered locally instead of to the real provider.
  8. Verify before handing it over. Load the account in WHM, confirm the quota and feature list match the package, and check that the DNS zone and /etc/localdomains entry exist. A two-minute check now catches a wrong package or a missing zone before the customer does.

A created account is easy; an account created with the wrong username, primary domain, or DNS placement is a rebuild. Stack Harbor provisions and audits cPanel accounts under cPanel/WHM management — start a conversation if you want account creation standardized across your fleet.