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!

cPanel cleanup - best practices and cleanup advices

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

  1. Razva

    Razva Member

    Aug 30, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    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

    May 20, 2003
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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. :)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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