# A site cannot save files

UrbeStack sysadmin note about Linux quota. Last updated 30 Nov 2026.

A site fails to save uploads or files, and PHP logs `possibly out of free disk space` while the server still has room. The customer has reached their Linux quota, and freeing space or raising the limit lets the site save files again.

## Symptoms

Uploads fail or files are cut short. Check the domain's PHP log with `urbestack-domain-log --name example.com --type php`. It shows the following warning.

```output
PHP Warning:  file_put_contents(): Only 4194304 of 8000000 bytes written, possibly out of free disk space in /home/USER/files/web/example.com/public_html/q.php on line 1
```

`df -h` shows plenty of free space on the server.

## Cause

The customer reached their package's disk limit. The limit counts everything in their home folder, including sites, mail, and files.

Files deleted in the web interface's file manager go to its Trash at `/home/USER/files/.trash` for 30 days. They still count toward the limit while they are there.

## Resolution

Check how much disk space the customer uses against their limit.

```
urbestack-disk-usage --name USER
```

Free space by emptying the Trash in the file manager or deleting files the customer no longer needs.

You can also raise the package's limit for every customer on it.

```
urbestack-package-set --name PACKAGE --disk-mb 20480
```

To raise the limit for this customer by moving them to a larger package, run the following command.

```
urbestack-user-set --name USER --package PACKAGE
```

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
