Systems Tuning
Preventing Nginx & PHP-FPM Logrotate Disk Bloat Across 40 Sites
Stop per-site Nginx access logs and PHP slow logs from silently filling 100-200 GB NVMe drives using daily logrotate compression and static asset access_log off.
14-Day Compressed Cap · Static access_log off · Zero Full-Disk Outage
Why Multi-Site NVMe Volumes Fill Up Overnight
Every CloudPanel vhost writes its own access.log and error.log inside /home/{user}/logs/. When a single site receives a 404 image-bot storm, uncompressed logs can grow by gigabytes per day unless static locations disable access_log and logrotate runs daily.
Bounding systemd-journald Beside Nginx Logs
Pair /etc/logrotate.d/nginx tuning with SystemMaxUse=250M in /etc/systemd/journald.conf so kernel and SSH auth logs never compete with MariaDB redo logs for root disk space.
Measured Parameters & CloudPanel Stack Directives
| Log Configuration | Recommended Value | NVMe Savings |
|---|---|---|
| Static Asset Logging | access_log off; inside static location | Cuts access.log write volume by 75-85% on image-heavy sites |
| Logrotate Frequency | daily + rotate 14 + compress + delaycompress | Caps 40-site log footprint under 2.5 GB total |
| Empty Log Skip | notifempty + missingok | Avoids rotating zero-byte logs on quiet staging domains |
| Journald Vacuum | SystemMaxUse=250M in journald.conf | Prevents systemd binary journals from eating root partition |