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.

cPanel cleanup - best practices and cleanup advices

Discussion in 'Workarounds and Optimization' started by Razva, Aug 30, 2012.

  1. Razva

    Razva Member

    Joined:
    Aug 30, 2012
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    After finding that my clients have a load of error_log and other logs they ever-never use, I decided to turn to cPanel forums for an advise regarding logs/archives best practices. So here are my questions:

    1) how can the size of an error_log be limited? error_log is everywhere, in most /home/user/public_html/directory/subdirectory . Can I restrict each user to a SINGLE error_log?
    2) can error_log be rotated? Nobody cares about the errors from 6 months ago. Can I keep only the error_log for the last 24 hours?
    3) I've noticed that the "logs" directory gets huge sometimes, for old customers. How can restrict log archiving just for one month (maximum)?
    4) /var/log gets very crowded sometimes. How can I manage log rotation?

    Thank you!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    1) WHM > Tweak Settings > Log Rotation Size Threshold

    2) WHM > Service Configuration > cPanel Log Rotation Configuration

    3) cPanel > Logs > Raw Access Logs > Configure Logs

    4) See #2

    I think that should help. :)
     
Loading...

Share This Page