ultralion

Well-Known Member
Nov 14, 2012
51
0
6
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

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

Disable error_log

Thank you.
 

ultralion

Well-Known Member
Nov 14, 2012
51
0
6
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

gruz

Registered
Mar 12, 2013
3
0
1
cPanel Access Level
Website Owner
There are no native limitations (beyond quota) on how large an error_log file can become.
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.