Hi everybody,
Some of the accounts hosted on our cPanel servers have error_log files inside their /public_html or its subfolders, sometimes growing to 300GB or more. I'm wondering how this could be stopped so that these files wouldn't grow higher than let's say 2GB.
I can think of cronjobs to flush these files once in a while but these files' paths would change, so it's not the best option. Fixing the errors or adding error pages on the websites also isn't an option, it's something to be done by their webmasters.
Is there any global config or settings in Apache or maybe cPanel to manage this?
Thank you for sharing your knowledge
Some of the accounts hosted on our cPanel servers have error_log files inside their /public_html or its subfolders, sometimes growing to 300GB or more. I'm wondering how this could be stopped so that these files wouldn't grow higher than let's say 2GB.
I can think of cronjobs to flush these files once in a while but these files' paths would change, so it's not the best option. Fixing the errors or adding error pages on the websites also isn't an option, it's something to be done by their webmasters.
Is there any global config or settings in Apache or maybe cPanel to manage this?
Thank you for sharing your knowledge