zpanel / zpanelx

ZPanel is a web hosting control panel written in PHP for Windows and *NIX host OS's.
http://www.zpanelcp.com
Other
415 stars 296 forks source link

Apache access log rotation #131

Closed jcerdan closed 10 years ago

jcerdan commented 10 years ago

It should be interesting to have Apache log rotation on ZPanel. Is that possible?

stokes84 commented 10 years ago

This is more of a feature request than an "Issue". I know in CentOS, by default log rotations are weekly and 4 weeks of previous logs are kept. I can't recall Ubuntu's default log rotations. Unfortunately with any panel you won't cover all bases so you'll still have to administer your server from time to time. This is an easy one though just look into the logrotate package. It's well documented all over the interwebz in regards to install and setup.

jacobgelling commented 10 years ago

@stokes84 :+1:

I think this should be the admin's job rather than ZPanels. I've got mine rotating every couple days and then backing up to another server.

jcerdan commented 10 years ago

Well, Apache logs are used for stats. It should be interesting to know how long are those logs processed so that log rotation won't affect the stats processing (awstats module installed).

allebb commented 10 years ago

Yep agree with @jacobg830 this is the job of the server admin as so many people I'm sure would have preferred configurations (rotation times etc.) :)

@jcerdan Good point, but bandwidth generation is aggregated from a separate 'access' file and then truncated automatically after generation :) - So as long as the log rotation is NOT configured for the bandwidth.access.log file then should be good :)