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!

Rotate accoutn apache log

Discussion in 'EasyApache' started by speckados, Mar 26, 2004.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    322
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I've put on every account a file .cpanel-logs with

    Well.

    I don't kown exactly how work.

    I see that any accounts rotate but not every month, and theirs files get a big log.

    It's possible modify (what script) for archive log every 15 days, or before get a 1GB file ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    166
    the file: logrotate.conf (probably in /etc)

    look at man logrotate for a simple explanation, but you'll probably want to edit logrotate.conf and change the directive:

    # rotate log files weekly
    weekly


    to

    # rotate log files when they reach 1024M
    size 1024M
     
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