Welcome to our website
To take full advantage of all features you need to login or register. Registration is completely free and takes only a few seconds.
How to Rotate Apache Log Files in Linux
Posted by Philipp Esselbach on: 07/22/2011 08:48 AM [ Print | 0 comment(s) ]
The Geek Stuff shows you how to rotate Apache log files
Question: I would like to automatically rotate the apache access_log and error_log files. Can you explain with an example on how to do this? Answer: This can be achived using logrotate utility as explained below. Add the following file to /etc/logrotate.d directory. # vi /etc/logrotate.d/apache /usr/local/apache2/logs/access_log /usr/local/apache2/logs/error_log { size 100M compress dateext maxage 30 postrotate [...]
How to Rotate Apache Log Files in Linux
Related Threads
07/14/2006 06:13 AM: How to Remove Fedora 5 and install Windows XP (2) by sanpraka
07/13/2006 04:40 PM: how to run VBA macros of MSExcel in Linux (1) by danleff
06/30/2005 01:03 AM: how to reinstall rh90 grub starter into floppy ,boot from floppy using grub sta (6) by danleff
11/11/2004 06:42 PM: How to remove Fedora core 2 and keep windows xp (6) by ibanez11223
02/16/2004 10:59 AM: how to run xmms?????? (7) by idud
07/13/2006 04:40 PM: how to run VBA macros of MSExcel in Linux (1) by danleff
06/30/2005 01:03 AM: how to reinstall rh90 grub starter into floppy ,boot from floppy using grub sta (6) by danleff
11/11/2004 06:42 PM: How to remove Fedora core 2 and keep windows xp (6) by ibanez11223
02/16/2004 10:59 AM: how to run xmms?????? (7) by idud
