On a DreamHost dedicated server, I noticed that the web server’s log files (
/home/USER/logs/DOMAIN/https/error.log) are not being rotated. Normally, on a shared or VPS server, the log files get rotated daily, and 5 previous days of logs are kept, so you end up with something like this:
access.log access.log.2021-02-17.gz access.log.2021-02-18.gz access.log.2021-02-19.gz access.log.2021-02-20.gz access.log.2021-02-21 error.log error.log.2021-02-17.gz error.log.2021-02-18.gz error.log.2021-02-19.gz error.log.2021-02-20.gz error.log.2021-02-21
However, on this dedicated server, the access.log and error.log files have just been growing and growing since we launched the server a few months ago (the access.log is now 25 gigabytes!)
Are these logs supposed to be rotated on dedicated servers too?
Any ideas how to troubleshoot this?