Right, rotation and pulling out the logs will help it. Instead of restarting the server with 'apachectl graceful' you can configure Apache to write logs to the pipe and redirect output to Apache utility 'rotatelogs' that can control the size of the log files, e.g.
CustomLog "|/usr/sbin/rotatelogs /path/to/log/file 5M" common
This will rotate the log files as soon as they reach 5 Mb in size. Then you better gzip them and ftp somewhere else.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.