nextcloud: document PHP upload limit bump

This commit is contained in:
Claudio
2026-05-10 20:17:22 +02:00
parent df4b2ec189
commit e5e87947f3

View File

@@ -28,6 +28,20 @@ Also needs `allow_local_remote_servers=true` in `config.php`.
## Storage ## Storage
Files at `/mnt/library/homecloud`. Owned by Nextcloud's own permission model — **deliberately not on the `media` group**, NC manages it itself and would complain. See [media permissions](../infrastructure/media-permissions.md). Files at `/mnt/library/homecloud`. Owned by Nextcloud's own permission model — **deliberately not on the `media` group**, NC manages it itself and would complain. See [media permissions](../infrastructure/media-permissions.md).
## PHP upload tuning
Apache uses `mod_php` (not FPM). Limits raised from distro defaults in both `/etc/php/8.4/apache2/php.ini` and `/etc/php/8.4/cli/php.ini` (the latter so `occ`/cron honor the same):
| key | value |
|---|---|
| `upload_max_filesize` | `16G` |
| `post_max_size` | `16G` |
| `memory_limit` | `512M` |
| `max_execution_time` | `3600` |
| `max_input_time` | `3600` |
| `output_buffering` | `0` |
Reload Apache after edits: `systemctl reload apache2`. Caddy in front (`cloud.hubris.network`) imposes no body-size limit, so these are the effective ceiling.
## Related ## Related
- [mulita (120)](120-mule-images.md) — reads NC user trees + writes back via WebDAV - [mulita (120)](120-mule-images.md) — reads NC user trees + writes back via WebDAV
- [Authentik (124)](124-authentik.md) - [Authentik (124)](124-authentik.md)
@@ -38,6 +52,9 @@ Files at `/mnt/library/homecloud`. Owned by Nextcloud's own permission model —
## Changelog ## Changelog
### 2026-05-10 — PHP upload limits raised
Apache + CLI php.ini bumped from distro defaults (`upload_max_filesize=2M`, `post_max_size=8M`, `memory_limit=128M`, `max_execution_time=30`) to NC-recommended (`16G/16G/512M/3600`). Backups at `/etc/php/8.4/{apache2,cli}/php.ini.bak-20260510-*`. Was causing slow/failing uploads via web UI.
### 2026-04-28 — wiki entry created ### 2026-04-28 — wiki entry created
Initial documentation. Initial documentation.