You open WHM, navigate to “Modify an Account,” change a quota or a primary domain, click Save — and the page hangs. After a few minutes the browser times out, but the underlying job is still running on the server, often holding a lock the next admin action will collide with. The account is now in an indeterminate state.
What’s happening
Modify an Account is not a database update. It triggers a chain of synchronous operations: the user’s quota is recomputed against the filesystem, the mail directories are walked, Exim configuration is rebuilt, the DNS zone may be rewritten, and the cPanel user file is regenerated. Any one of those stages can stall — a stale quota file with millions of inodes, an NFS-backed mail directory the kernel cannot stat quickly enough, an Exim queue that has not run in days, or a DNS cluster peer that is unreachable. The web UI waits synchronously for the whole chain.
How to verify
While the page is still hanging, on the server:
ps auxf | grep -E "modifyacct|whostmgrd|edit_account"
tail -f /usr/local/cpanel/logs/error_log
Identify which subprocess is stuck. Common candidates:
ps -eo pid,etime,cmd | grep -E "quota|edquota|exim|named|repquota" | sort -k2 -r
exim -bpc
ls /var/spool/exim/input | wc -l
repquota -avs 2>/dev/null | tail
A quota run holding for several minutes against a large /home partition, or an Exim queue with tens of thousands of frozen messages, is usually the culprit. If named-checkconf returns errors, the DNS rebuild is what is stuck.
The fix
- Do not kill the WHM session. Killing the parent leaves child processes orphaned and the account half-modified. Wait for the operation to finish in the background, then verify via
whmapi1 accountsummary user=USER. - If quotas are the bottleneck, run
/scripts/fixquotasoutside business hours first. Re-run the modification afterward. - If Exim is the bottleneck, clear frozen messages with
exiqgrep -zi | xargs -n 100 exim -Mrm, then retry. A million-message queue will block every account edit on the box. - If DNS cluster peers are unreachable, temporarily demote them in WHM’s “Configure Cluster” so the rebuild does not wait on a network timeout.
- Use the API directly for high-volume changes:
whmapi1 modifyacct user=USER QUOTA=10000skips the synchronous web flow and surfaces errors immediately.
The web UI is the wrong tool for any modification that runs against a stale quota database or a backlogged mail queue. The API gives you exit codes and timestamps.
If editing accounts has become unreliable on a busy WHM, that is operational risk we own under Deployment Management — open a ticket.