These forums are read-only!
How to log rotate ~/public_html/ ?
  • I followed the instructions on this site on how to setup my httpd server.

    My server stopped responding and I realized my access.log was 15GB! OMG!

    I deleted it but that didn't free up the space.

    Well, until I figure the above problem out I'm wondering how would I set up log rotate to delete that file in my home directory?
  • Automatically rotating log files is easy. Take a look at logrotate to see how.

    Your Apache logs in /var/log/(apache2|httpd) are probably already being rotated. Why are you storing this particular log in your home directory instead of in the standard location?
  • We also have our own logrotate articles here:

    Hope this helps!