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!

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:
    301
    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:
    334
    Likes Received:
    14
    Trophy Points:
    318
    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:
    316
    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:
    693
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 myusername, Jul 27, 2004
    Last edited: Jul 27, 2004
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