• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Nub help: Backing up & Rotating Apache Log files: linux server

jhbball

Platinum Member
So, I'd like to set up a cron job, that rotates and backs up Apache log files on our web server, but I'm not sure how to set this up. Does anyone have quick instructions as to how to set this up?

-----------
Moved to appropriate forum.

Markbnj - Programming Mod
 
Most Linux distributions already have a facility called logrotate. If you change the paths where Apache logs you'll have to fix them in logrotate but that's about it.
 
Originally posted by: jhbball
So, I'd like to set up a cron job, that rotates and backs up Apache log files on our web server, but I'm not sure how to set this up. Does anyone have quick instructions as to how to set this up?

-----------
Moved to appropriate forum.

Markbnj - Programming Mod

If you installed Apache from a package manager, then logrotate should already be set up. You can open "/etc/logrotate.conf" and add the line: "mail youremail@server.com" to have logrotate email the logs to you. You can also configure logrotate to copy the logs files to a specified location.

Just google "logrotate" or "man logrotate" for more information.
 
Install webmin and use its management tool for syslogs. Very easy and very quick when you are asked to change a setting. You wont have to fumble around much looking for an answer.
 
Back
Top