My problem: Both access and error logs do not rotate any more and get really large.
They are located here: /srv/www/+vHost name here+/logs/
Configuration seems to be here:
/etc/logrotate.conf => looks OK, including "size 10M" to avoid large files
(/etc/logrotate.d => is empty)
manually starting logrotate (logrotate -v /etc/logrotate.conf)
only results in adding the current date to the log file name,
but there is no new empty log file created.
Instead, new log entries are still added to the renamed log files.
I tried to replace "create" inside the conf file with "copytruncate".
This time, the log file name is not changed (no date added), but there is no copy made
of the file and it is not emptied.
I hope this is the right forum to post to; I haven't set up the server myself and dive into the topic for the first time. General manuals did not help so far, unfortunately...
I'm not afraid to do further researches myself, but have no idea where to look for...
Thanks for any hints!
P.S.: The web server is running on
Amazon Linux AMI 2014.09.2 x86_64 HVM EBS
(httpd-2.2.31-1.6.amzn1.x86_64)