The default is one cPanel account per WordPress site, and grouping sites into a single account with addon domains should require a reason you can say out loud. The reason is not aesthetic. Everything inside a cPanel account executes as one Unix user, and in cPanel the Unix user is the isolation boundary — it is what suEXEC enforces, what CloudLinux LVE meters, what the disk quota counts, what a backup captures, and what a server move carries. Addon domains give you separate document roots, vhosts, DNS zones and mail domains. They do not give you a separate uid. So a compromised plugin in the smallest brochure site can write into the flagship store’s wp-content, one runaway site can consume the whole account’s CPU and entry-process allowance, and a full-account restore taken to rescue one site rolls the other five back with it. Grouping is defensible in exactly one shape: a single owner who runs every site in the group, accepts a shared fate, and will never need to restore or move one of them alone.
What you’ll accomplish
- Map every document root back to its owning account and Unix user, so you know which shape you are in today rather than which one you meant to build.
- See what an addon domain genuinely separates and what it does not, using commands that show the boundary rather than arguments that describe it.
- Read per-account CloudLinux LVE usage and tell whether one site is starving its siblings.
- Land on a default with named exceptions you can defend to a client or an auditor.
- Recognise the operations — single-site restore, single-site migration, per-site PHP build — that become expensive only after the layout is set.
Prerequisites
- WHM root access and shell access to the server. Most of the audit below is root-only; a reseller can run the account-level parts against accounts they own.
- Written against a current cPanel and WHM release with EasyApache 4 and PHP-FPM. The account-as-Unix-user model described here has not changed in years, so the reasoning holds on both the LTS and current release tiers; confirm your own version with
/usr/local/cpanel/cpanel -V. - CloudLinux is optional. If it is present you get LVE, CageFS and PHP Selector, and the resource half of the argument becomes much sharper. Check with
rpm -q lve-utils; if the package is missing, skip the LVE steps and treat contention as a whole-server problem rather than a per-account one. - Assumes PHP runs through PHP-FPM or suPHP under suEXEC, which is the cPanel default. If PHP still runs as a DSO module, every site on the server executes as the Apache user and the isolation story is worse than anything described here.
jqfor readable API output.
How it works
A cPanel account is a Unix account. Creating one creates a user, a group, a home directory under /home, an entry in /var/cpanel/users/, and — on CloudLinux — an LVE keyed to that uid. Every request that account serves is executed by that user: the PHP-FPM pool runs as it, cron jobs run as it, SSH sessions run as it, and suEXEC refuses to run a CGI whose file owner disagrees with the vhost owner.
That single fact drives most of the trade-off.
Blast radius. WordPress needs to write to wp-content/uploads, and most sites let PHP write further than that. If three sites share a uid, a file-write primitive in any one of them reaches all three: their uploads, their wp-config.php, their plugin directories. Nothing in the filesystem stops it, because from the kernel’s view it is the same user touching its own files. File modes do not save you here — 644/755 under suEXEC keeps other accounts out, not siblings inside the same account. The file permission model behind suEXEC is worth reading alongside this, because it is routinely mistaken for site-to-site isolation.
Resource limits. CloudLinux applies LVE limits per account, not per domain. One account gets one CPU allowance, one memory ceiling, one entry-process (EP) count and one I/O budget, and all sites in it draw from the same pool. A WooCommerce checkout burst or an aggressive crawler on one addon domain can exhaust the account’s EP limit, and the siblings start answering HTTP 508. There is no per-domain LVE.
CageFS virtualises /etc, /tmp and the process table per user, so accounts cannot see each other’s processes or temp files. Inside one account, all sites share one /tmp and one process view — including session files, which is why cross-site session bleed is a real category of bug on grouped accounts.
Backups. cPanel’s own backups and JetBackup account backups are account-scoped. Restoring an account restores everything in it. Good backup tools can restore individual files or a single database, and that is the escape hatch — but “restore the account to last Tuesday” is one action that hits every site in it.
What addon domains do separate: the document root, the vhost, the DNS zone, mail domain routing, the TLS certificate, and — under EasyApache 4 MultiPHP — the PHP version and FPM pool per vhost. If you are unclear on how addon, subdomain and alias differ in DNS and mail terms, the addon vs subdomain vs alias comparison covers that layer.
The cost on the other side is structural: each account is a row against your licence tier’s account allowance, a home directory, a DNS zone set, a mail configuration, a backup target, and one more thing to monitor and hand credentials for. Ten accounts is ten of everything. That overhead is the honest counterweight.
Step-by-step
- Inventory every domain with its owner and document root. This is the ground truth, and it usually surprises people.
whmapi1 get_domain_info | jq -r '.data.domains[] | [.user, .domain, .domain_type, .docroot] | @tsv' | sort | column -t
Expect one line per vhost. Read the user column: every domain sharing a value there shares a uid. If ten domains show the same user, you have one account hosting ten sites regardless of what the client-facing inventory says.
- Confirm the account list and the licence pressure. Count what you are actually running.
whmapi1 listaccts | jq -r '.data.acct[] | [.user, .domain, .plan, .diskused] | @tsv' | column -t
whmapi1 listaccts | jq '.data.acct | length'
The second command prints a single integer. That number, not the domain count, is what a licence tier caps and what per-account overhead scales with.
- Prove the ownership boundary on disk. Pick an account that hosts several sites and check that every file really belongs to that user.
find /home/acme -xdev \! -user acme -printf '%u:%g %p\n' 2>/dev/null | head -20
Clean output is empty. Files owned by root, by another account’s user, or by nobody are the residue of a manual copy or an unpacked archive, and they are a live source of suEXEC failures and WordPress update errors.
- Show that the sites in one account are the same process user. Nothing makes the point faster.
ps -eo user,args | grep '[p]hp-fpm: pool' | awk '{print $1, $NF}' | sort -u
Each line is a pool and the user its workers run as. Under a grouped account you will see several pools all listing the same user — separate pools, one identity.
- Read the LVE limits and the recent faults per account. On CloudLinux only.
lvectl list
lveinfo --period=1d --display-username
lveinfo --period=1d --user=acme
lvectl list prints one row per LVE id with SPEED, PMEM, MAXENTRYPROCS, NPROC, IO and IOPS — one row per account, which is the whole point. lveinfo reports usage and faults; non-zero aborted or EP faults on a grouped account mean sites in it are already interfering with each other. For a live view during an incident:
cat /proc/lve/list
The columns include current CPU, EP and memory usage against the limit for each active LVE.
- Check the PHP version behind each document root. Per-site PHP pinning is possible inside one account — with one large caveat.
whmapi1 php_get_vhost_versions | jq -r '.data.versions[] | [.vhost, .account, .version, .php_fpm] | @tsv' | column -t
Each vhost carries its own version, so an addon domain can sit on PHP 8.1 while the primary runs 8.3. The caveat is CloudLinux PHP Selector, which is a per-user setting and conflicts with MultiPHP. If the host uses the Selector, PHP version and extension set are account-wide properties and per-site pinning is not available:
cloudlinux-selector get --json --interpreter=php --user=acme
The JSON reports one selected version for the whole account. If that command errors with the selector disabled, MultiPHP is in charge and per-vhost versions apply.
- Look at quota and inode accounting. One account means one budget for both.
repquota -s /home | head -20
quota -s -u acme
repquota prints blocks and files per user; the file count is your inode usage. A site that keeps ten years of image thumbnails will push the whole account into an inode ceiling, and every sibling starts failing writes at the same moment. Adjust deliberately rather than reactively — see modifying account quota and resources in WHM.
- Apply the decision. Five questions, and one yes is enough.
- Create the separate accounts when the answer says so. One account per site, then move the content in.
whmapi1 createacct username=acmeb domain=site-b.com plan=agency-standard contactemail=ops@example.com
Success returns "result": 1 in the metadata block. Then copy the site into the new home directory, hand it to the new user, and check that WordPress can still reach its database:
rsync -aH --numeric-ids /home/acme/site-b.com/ /home/acmeb/public_html/
chown -R acmeb:acmeb /home/acmeb/public_html
sudo -u acmeb wp --path=/home/acmeb/public_html option get siteurl
The last command must print the site’s URL. If it prints a database connection error instead, the new account’s wp-config.php still points at the old account’s database user, and that has to be corrected before you cut DNS over.
Validate it works
Confirm the shape is real, not intended. Re-run the inventory and check that each site’s domain now maps to its own user:
whmapi1 get_domain_info | jq -r '.data.domains[] | [.user, .domain] | @tsv' | sort | column -t
One user per site means one line per user. Then confirm the uid boundary directly:
stat -c '%U %G %n' /home/acmeb/public_html/wp-config.php
sudo -u acmea test -w /home/acmeb/public_html/wp-content && echo "NOT ISOLATED" || echo "isolated"
The stat output must name the account’s own user and group. The second command must print isolated — if it prints NOT ISOLATED, the directory permissions are too open or the accounts share a group, and you have separate accounts with none of the benefit.
Confirm the resource boundary:
lvectl list | grep -E '^\s*(1042|1043|1044)'
Each uid appears on its own row with its own limits. One row covering several sites means they are still sharing a budget.
Confirm per-site PHP if you relied on it:
whmapi1 php_get_vhost_versions | jq -r '.data.versions[] | select(.account=="acmeb") | [.vhost, .version] | @tsv'
Troubleshooting
An addon document root sits inside another site’s tree. cPanel’s default suggestion for an addon domain is a directory under public_html, which makes site-b.com reachable as site-a.com/site-b.com/ — duplicate content, leaked staging, and a mess when either site gets a rewrite rule. Verify with the docroot column from step 1; every docroot should be a sibling, never nested inside another. Fixing it means creating the addon with a docroot outside public_html and moving the files, not editing Apache by hand.
Ownership is wrong after a manual copy. Files unpacked as root, or rsynced without a following chown, end up owned by the wrong uid. WordPress then reports it cannot write to wp-content, plugin updates ask for FTP credentials, and suEXEC logs a uid/gid mismatch in /usr/local/apache/logs/suexec_log. Re-run the step 3 find, then chown -R user:user /home/user.
One site 508s the whole account. A traffic spike or a crawler on one addon domain exhausts the account’s entry-process limit, and every site under that uid starts serving 508. Confirm with lveinfo --period=1h --user=acme and look at the EP faults. Raising the account’s limit is a temporary measure that also raises the ceiling for the noisy site; the durable fix is splitting the busy site into its own account so its budget is its own.
A restore clobbers a sibling. Someone restores the account to yesterday to recover one site, and the other four lose a day of orders and posts. Before any account-level restore on a grouped account, use the backup tool’s file-level or database-level restore instead — restore only that site’s docroot and only that site’s database. If the tool cannot do partial restores, take a fresh full backup first so the siblings’ current state is recoverable.
Mail for an addon domain behaves oddly. Addon domains share the account’s mail configuration, and addresses on them are stored under the primary account’s user. SPF and DMARC alignment, mailbox quotas and routing all inherit account-level settings. If a site needs mail it genuinely owns, that is a separate-account signal, not something to work around.
When this is the wrong approach
One account per site is a default, not a law, and there are honest exceptions.
Group sites when one owner runs all of them and shared fate is acceptable — a company’s marketing site, its careers microsite and two campaign landing pages, all maintained by the same team and restored together. Nothing there gains from separate uids.
Group sites when they are genuinely trivial: parked brands, redirect-only domains, single-page holding sites. An alias domain or a small addon is the right amount of machinery for content with no database and no plugins.
Group sites when the account count is a constraint you have measured. Licence tiers cap accounts, and per-account overhead is not free. If you run dozens of tiny sites for one owner, one account with addon domains may be the arrangement you can actually operate — just make the shared blast radius a documented decision rather than an accident.
And go the other way when even one account per site is not enough. Sites with different compliance obligations, a client who requires proof of isolation, or a store whose traffic deserves its own tuning belong on separate servers or containers, not merely separate accounts on a shared box. The cPanel documentation covers account and package mechanics; the CloudLinux documentation covers what LVE and CageFS do and do not enforce.
Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.