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.

Is there a way to rotate each user's error_log?

Discussion in 'General Discussion' started by Ishware, Dec 7, 2013.

  1. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Is there a cPanel-friendly way I can have each user's error_log (i.e. in /home/$user/public_html) automatically rotated?

    I have a lot of accounts on my server that are building up large error logs, and it becomes a support issue. I'd like to keep them at a maximum size of 100mb...

    Thanks for any advice!
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    No there is not.


    Fix the sites so that they do not generate errors.
     
  3. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Clearly, the solution is for me to spend hours upon hours fixing my clients' code instead of seeking a way to minimize the actual problem.

    For that matter, why am I using cPanel anyway, if I could just manually set up everything I needed to do?

    Also, I happen to know you're wrong about there not being a solution: when I googled to try and find a solution, I found a package - I think it was logrotate or something similarly clearly named (I'll re-find it if I get to that point) - but I'd rather not mess with it if there's an easier way.

    But if nobody has any better suggestions, I'll get something working. So yes, there is a solution out there - if not multiple. It's pretty clear I'm not the only one who has wanted this functionality.
     
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    The actual problem is that your clients' sites generate errors, the error logs are just symptoms of the problem.

    Yes of course. You can also write your own compiler. :D

    I know that. But because you asked "Is there a cPanel-friendly way ..." I assumed you meant something you can set up / configure in cPanel/WHM.
     
  5. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Ah, makes more sense, thanks. I meant "Something that cPanel/WHM won't over-write with each update"-type of thing.

    Cheers. :)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    Well, shucks, the option to disable error reporting is awesome and simple. Didn't think to check if something like that existed. And definitely didn't find anything like the other thread when searching for solutions.

    Thank you very very much! :D
     
Loading...

Share This Page