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!

issue with a log on account

Discussion in 'General Discussion' started by ultralion, Aug 23, 2013.

  1. ultralion

    ultralion Well-Known Member

    Joined:
    Nov 14, 2012
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Viareggio
    cPanel Access Level:
    Root Administrator
    Hi, today i discover that my vps was going out of space.
    After few check i've seen was a script on an account causing errors and there was under public_html dir an error_log of over 200GB!!!
    now i'm asking... log rotate work only on system log or also for users account?
    There's a way to prevent this?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    The individual error_log files are not rotated. The following post should be helpful to you:

    Disable error_log

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ultralion

    ultralion Well-Known Member

    Joined:
    Nov 14, 2012
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Viareggio
    cPanel Access Level:
    Root Administrator
    well many thanks.. so at last i have to use a custom php.ini
    but second question is... how is possible? i mean.. in apache i set max execution time to 300 seconds, this error was generating by a script wich import auctions froma a website (that was down in that moment, so was doing issue) but how is possible that process still work for hours and hours until generated a 220 gb size error log?
    max_execution time directive is not enough to break a script? :eek:
    i'm a bit worried abaout this
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    There are no native limitations (beyond quota) on how large an error_log file can become. Typically, the best way to resolve this type of issue is to find out what is generating the error message itself and resolve that issue. If the "max_execution_time" value is the source of the problem, it may be a good idea to see why the script can not execute in that time frame.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. gruz

    gruz Registered

    Joined:
    Mar 12, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    So log rotation doesn't work for per-accont error_log files,correct?
    So what I should do then? Some accounts have huge error logs. I want to keep some error_logs to fix problems, but I my space is disappearing quickly. Isn't it possible to limit error_log size per account?

    I enabled log rotation (cPanel Log Rotation Configuration) and change size in Tweak settings. But at least some accounts have huge error_log files. What should I do?

    Thanks.
     
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