A 507 Insufficient Storage on cPanel almost always means a quota ran out. The interesting question is which quota: the per-user disk quota set in WHM, the partition fill level on /home or /tmp, or the database quota that prevents new writes. The 507 itself does not say which — the logs do.
What’s happening
cPanel imposes quotas at multiple layers. The per-account quota lives in quotaon enforcement on /home. The filesystem itself fills as a separate concern — even with quota headroom, an out-of-space /home partition returns 507. MySQL/MariaDB has no built-in HTTP behavior, but a write that fails because the database partition is full propagates back to the application, which returns 507 if it is written defensively. The fix path differs because each layer recovers differently.
How to verify
Check the three layers:
# user-level quota
quota -u <user>
# partition fill
df -h /home /tmp /var /backup
# inode exhaustion (looks like full but is not bytes)
df -i /home
# database storage
mysql -e "SELECT table_schema, ROUND(SUM(data_length+index_length)/1024/1024, 2) AS MB FROM information_schema.tables GROUP BY table_schema ORDER BY MB DESC;"
# cPanel-level quota cache
whmapi1 get_quota_users
The fix
- User over quota —
quota -u <user>shows current and limit. Either raise the limit in WHM > Modify an Account, or have the user delete files.du -sh /home/<user>/*finds the largest directories quickly. /homepartition full —df -h /home. If full, find offenders:du -sh /home/* | sort -hr | head -20. Watch for/home/<user>/tmpand/home/<user>/logsaccumulating without rotation./tmpfull —df -h /tmp. If full, PHP cannot write sessions, MySQL cannot write temp tables. Clear withfind /tmp -type f -mtime +1 -deleteafter confirming nothing critical lives there.- Inode exhaustion —
df -ishows percentage. If at 100%, the partition is “full” of small files. Common cause: spam in a mailbox with millions of one-byte files. Find withfind /home -xdev -type f | wc -lper directory. - MySQL partition full —
df -h /var/lib/mysql. If full, MySQL refuses writes. The fix is the same as/home: identify the consumer and either rotate or move.
A 507 that hits after a quiet weekend is usually a backup that landed and never rotated. Stack Harbor handles capacity triage and quota policy under cPanel server administration — start a conversation when 507s recur.