Troubleshooting guide · website-errors · Published 2026-08-15 · 4 min read

Server disk full stopping the website

Server disk full stopping the website: how a full disk breaks services, find the biggest files, clear logs and caches safely, and prevent it.

How a full disk stops the site

A server disk full does not produce one neat error; it produces the full alphabet of trouble. The filesystem cannot write, and the first process that fails varies:

The interesting fact about a disk full site: the shell keeps running, the server is up, but the site inside it dies one layer at a time.

The proof

  1. From the terminal (if you have shell access): df -h / shows the mount's usage. df on the data mount, not just the system mount.
  2. From cPanel: the "Disk Usage" page in the Files section, which shows per-account usage.
  3. From the site: create a two-byte file (echo x > /tmp/x on the shared host) and read back. A write error is the exact confirmation.

Find the big files

SuspectWhere it livesHow to clear
Old backupsbackup/, *.sql in homeMove to archive or a different disk
Logslogs/, error_logTruncate and rotate
CacheCMS cache dirsPurge via the CMS
Session filestmp/Age and delete
Emails on the local mail boxdomain/mail/Clear old mail, check the box

Useful commands, depending on access:

du -sh -- * | sort -h   # per-folder sizes (account root)
find . -type f -size +100M 2>/dev/null   # biggest files anywhere

du -sh -- * detects the account size with a reverse output. Sort by folder and see which single folder eats the space before touching anything.

The safe clearing order

  1. Backup a copy of anything you are about to delete if it has any value beyond "temporary".
  2. Clean the logs. Rotate them (gzip, delete older than a week) instead of deleting active files: logrotate or the host's interface.
  3. Clear caches and old build artifacts.
  4. Delete old .sql dumps and old uploaded files that are no longer linked.
  5. Run the cleanup a second time after a day; a disk that fills back fast has a leak (a runaway log, throttled writes, a mailbox), and the prompt list wise to find the leak.

Never "rm -rf" a production directory by memory. On a shared host, the tmp folder may be shared, and the cache might be needed by the plugin's own config.

When you have no shell

On a shared or cPanel-only host:

Prevention

When a full other disk is the cause

Some hosts have slower disks or a separate mount for /tmp or the mail spool. If the site dies while df -h / looks clean, check df -h /tmp and the mail queue. A filled /tmp mimics every symptom of the site outage with no change visible in the account disk numbers.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services