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.

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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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