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.

How often are apache logs deleted by CPanel?

Discussion in 'EasyApache' started by albatroz, Sep 2, 2012.

  1. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    I have the impression that everyday (well everynight) after awstats excutes its tasks
    the Apache log files of each website are deleted. Am I right?
    I ask because I need to track the defacement of a website and it seems like my R1Soft backup
    rules are not including the backup of the log files.
     
  2. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    You can decide it yourself. Generally cPanel does not delete logs instead it archives them and save. You can rotate the logs according to your needs.

    cPanel Log Rotation Configuration
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If Delete each domain’s access logs after stats run, in Main >> Server Configuration >> Tweak Settings, is On, then the domains' logs, in /usr/local/apache/domlogs, are deleted after each stats run. The default for this setting is On.

    The log rotation configuration mentioned by pwhjenny is for the cPanel logs, not the domains' Apache logs. They are totally separate, not related.
     
Loading...

Share This Page