Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Enable log rotation?

Discussion in 'General Discussion' started by Tornado, Sep 1, 2017.

  1. Tornado

    Tornado Active Member

    Joined:
    Jul 17, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    56
    Hi
    every month we should remove manually some logs which consuming lots space...
    for example:

    /var/log/apache2/archive

    1.4G error_log-07-2017.gz
    9.5G error_log-08-2017.gz
    212M error_log-09-2017.gz


    how i can disable rotate apache logs ?
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    735
    Likes Received:
    251
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Log file rotation is configured in WHM Home » Service Configuration » cPanel Log Rotation Configuration
    If you have logs building up in other locations, I would first try and ascertain why they might not be under the cPanel log rotation control, and what is controlling them. I do, however, find it strange that you want to disable rotation for files that are causing you issues.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Tornado likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The archived log files are left in place indefinitely, but you could setup a cron job to manually remove the log archives from the "/var/log/apache2/archive" directory.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Tornado likes this.
  4. Tornado

    Tornado Active Member

    Joined:
    Jul 17, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    56
    Hi
    Thank you
    could you please provide us the cron job command to remove archives fro /var/log/apache2/archive ?
     
  5. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    735
    Likes Received:
    251
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice