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.

Trimming the logs for Apache

Discussion in 'EasyApache' started by rsutc, Jan 17, 2005.

  1. rsutc

    rsutc Well-Known Member

    Joined:
    Oct 8, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    I note that the logs in
    usr/local/apache/logs/
    namely access log and error log
    have grown very large. Is there a simple way to trim these, and prevent them from getting overly large in the future?
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    One solution is to use the scripts that Squirrel from this forum makes available.
    http://www.premierwebsitesolutions.com/scripts/
    Did just look to see if they were part of his free offerings and it appears they are not currently, although the script club only costs $10.
     
    #2 sawbuck, Jan 17, 2005
    Last edited: Jan 17, 2005
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    My script to empty log files through WHM let's you delete the apache logs in the free version. The members version also lets you empty cpanel logs.

    I don't have a script to trim the size of the logs, just delete them.

    There is also a new one added yesterday that will empty the log files automatically by a cron job. Like the WHM one, the free version can work with the apache logs, and the members version also works with the cpanel logs.
     
Loading...

Share This Page