Web Log File Gets Bigger and Bigger

andywest

Registered
Aug 17, 2006
3
0
151
Hi,

We're new to our own servers and use CPanel, Apache Web Server, and Red Hat Linux Enterprise.

How do I get the web log file of one of our web sites to not keep growing bigger and bigger each month? I can no longer open it in a word processor.

When we previously used CPanel with a hosting company the log files started from zero size each month and were saved. That's what we want.

Thank you,
Andy
 

xerophyte

Well-Known Member
Mar 16, 2003
215
0
166
Canada
Code:
 man logrotate
logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression,removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.