Skip to content

Creating a cPanel hosting package in WHM — every field on Add a Package

A field-by-field walkthrough of WHM Add a Package: quota, bandwidth, limits, feature list, and the settings you will wish you had chosen deliberately.

A package is the template every cPanel account is stamped from — quota, bandwidth, how many domains and databases it may have, which features it sees, which theme it loads. Build the package once, correctly, and every account you create from it is consistent and editable as a group. The Add a Package screen is mostly numbers, but a few fields (feature list, the digest/email options, the resource limits that look unlimited but are not) reward a moment’s thought before you save.

What’s happening

WHM » Packages » Add a Package writes a package definition to /var/cpanel/packages/<name>, a flat file of KEY=value lines. When you later create an account “on” that package, createacct copies the package’s values onto the new account: disk quota (QUOTA), monthly bandwidth (BWLIMIT), max addon/parked/sub domains, max databases (MAXSQL), max email accounts (MAXPOP), max FTP accounts, max mailing lists, the feature list (FEATURELIST), and the cPanel theme. The account also records which package it came from, which is what lets you edit the package later and reapply it to every account at once.

The subtlety is which values are “frozen at creation” versus “live.” Disk and bandwidth and the max limits are copied to the account and become editable per-account afterward (creating drift if you edit them there). The feature list is referenced live — change the list and accounts update immediately. Anything you leave at a default here is still a real choice: an “unlimited” quota is genuinely no cap (a runaway account can fill the disk), and the digest/byte-units settings change how customers read their own usage.

How to verify

Confirm the package was written and contains what you expect:

# Where packages live, and the contents of one
ls -1 /var/cpanel/packages/
cat /var/cpanel/packages/starter

# The same via API, with every field named
whmapi1 getpkginfo pkg=starter
whmapi1 listpkgs

Check that the feature list you intend to attach actually exists before you reference it:

# Feature lists available to attach
ls -1 /var/cpanel/features/
whmapi1 get_available_featurelists

To create the package non-interactively (handy for documenting it as a repeatable command):

whmapi1 addpkg \
  name=starter \
  quota=10240 \
  bwlimit=102400 \
  maxsub=10 maxpark=5 maxaddon=2 \
  maxsql=5 maxpop=25 maxftp=5 \
  featurelist=starter \
  cpmod=jupiter

The fix / steps

  1. Name the package for the tier, lowercase and stable. The name appears in WHM, in billing integrations, and in every account record. Use starter, business, pro — not a date or a customer. Renaming a package later means re-pointing accounts, so pick a name you will keep.
  2. Set the disk quota in MB, and avoid casual “unlimited”. The Disk Quota field is megabytes unless you tick Unlimited. Unlimited means exactly that — one account can consume the whole filesystem and take every other account down with it. Use a real number sized to the tier; reserve unlimited for plans you genuinely intend to be uncapped and monitor.
  3. Set the monthly bandwidth limit knowing it resets. Bandwidth Limit caps the rolling month and resets on the cycle. Size it to the tier’s expected traffic; an account that exceeds it gets suspended for overage until the reset or until you raise it. Unlimited bandwidth removes a useful guard rail — set a number unless the plan is explicitly uncapped.
  4. Set the four “max” limits to match the plan’s story. Max addon domains, max subdomains, max databases (MAXSQL), and max email accounts (MAXPOP) are what differentiate tiers more than disk does. A “single site” plan should cap addon domains at 0; a reseller-grade plan opens them up. These are the fields customers actually hit, so set them on purpose.
  5. Attach the right feature list. The Feature List field decides the cPanel menu for every account on the package. Point it at a list you built for this tier (see the feature-list runbook), not blindly at default. Remember the feature list is live: editing the list later changes every account on this package immediately.
  6. Choose the cPanel theme deliberately, usually jupiter. cPanel Theme sets the interface accounts load; jupiter is the current supported theme. Leave legacy themes alone unless you have a specific reason — a non-standard theme is one more thing to maintain when cPanel updates.
  7. Set the digest and units options for clarity, not vanity. Options like Digest Authentication (for Windows WebDAV) and the byte-units display affect how customers read usage and connect to Web Disk. Defaults are fine for most; only change them if the tier has a specific need, because they are easy to forget you changed.
  8. Save, then create one test account to prove the template. Before billing puts real customers on it, create a throwaway account on the package and confirm the quota, limits, feature menu, and theme all match what you intended. A package is copied onto every account that follows, so a wrong field here is a wrong field on dozens of accounts later.

A well-built package turns account creation into a one-line, consistent operation and gives you a single place to change a whole tier. Stack Harbor designs cPanel package tiers and keeps them consistent across servers under cPanel server management — start a conversation to standardize your plans.