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.

Rotating /usr/local/apache/domlogs/

Discussion in 'EasyApache' started by a1022, Nov 18, 2001.

  1. a1022

    a1022 Registered

    Joined:
    Oct 14, 2001
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    My logs are too huge! How can I get Cpanel/WHM to rotate the domlogs daily? I tried editing the /etc/logrotate.conf but that doesn\'t seem to work.

    PLEASE HELP! THANK YOU!
     
  2. eva2000

    eva2000 Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    322
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Brisbane, Australia
    cPanel Access Level:
    Root Administrator
    Twitter:
    hey again :)

    you need to specify the log rotate lines in /etc/logrotate.d/apache file

    [quote:c0e0ad773c]
    /home/username/logs/domain.com {
    rotate 9
    daily
    compress
    }
    [/quote:c0e0ad773c]

    delete the large log file first and restart apache before you add the above

    i added the extra step to my instructions at http://i4net.tv/marticle/get.php?action=getarticle&articleid=22
     
  3. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    This would be a nice feature for Cpanel systems to have the users logs created in their own account directories and Stats to work with this system too.

    [quote:7d4d3a4083]hey again :)

    you need to specify the log rotate lines in /etc/logrotate.d/apache file

    [quote:7d4d3a4083]
    /home/username/logs/domain.com {
    rotate 9
    daily
    compress
    }
    [/quote:7d4d3a4083]

    delete the large log file first and restart apache before you add the above

    i added the extra step to my instructions at http://i4net.tv/marticle/get.php?action=getarticle&articleid=22

    [/quote:7d4d3a4083]
     
  4. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The only prolem is disk quota issue on per account basis if they did this larger sites that process a lot of requests can fill up 2 gigs of domlog entries in just a couple to few days.

    Perhaps they could work around it to not count against user disk, or better yet allow enabling/disabling stats and domlog rotation options on a per account basis so the user can decide what they want to do from their cPanel.
     
    #4 myusername, Jul 27, 2004
    Last edited: Jul 27, 2004
Loading...

Share This Page