The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web Log File Gets Bigger and Bigger

Discussion in 'General Discussion' started by andywest, Jan 22, 2007.

  1. andywest

    andywest Registered

    Joined:
    Aug 17, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
Loading...

Share This Page