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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Enable log rotation?

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

  1. Tornado

    Tornado Active Member

    Joined:
    Jul 17, 2007
    Messages:
    30
    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:
    301
    Likes Received:
    88
    Trophy Points:
    28
    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.
     
    Tornado likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,080
    Likes Received:
    1,364
    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.
     
    Tornado likes this.
  4. Tornado

    Tornado Active Member

    Joined:
    Jul 17, 2007
    Messages:
    30
    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:
    301
    Likes Received:
    88
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page