logrotate and journald: Managing WordPress and Nginx Log Rotation
Log rotation for WordPress, Nginx and PHP-FPM with logrotate and journald Logs grow quietly. A busy site writes hundreds of megabytes of Nginx access log per week, a plugin with a notice in a loop fills debug.log with gigabytes, and one day the disk is full and MySQL stops. Two tools keep logs in check…