domain log getting fat and server goes down

bahramsing

Verified User
Joined
Jan 20, 2014
Messages
20
Hello
One of our directadmin accounts make fat domain logs in /var/log/httpd/domains/domainname.com.error.log
It growth up to 300 GIG or even more..
And make our hard drive full, then mysql goes down.

Is there anyway to prevent this issue?
We use Centos 6.x and cloudlinux
 
I think generated error logs should have a built-in auto-protection that kicks in when servespace is getting low, and not just keep generating errors.

But why not fix the cause of the error first?
 
Hello,

If the error logs growth too large it most likely happens due to numerous warnings, notices, errors from PHP. The simplest way would be to configure PHP not to write anything into error logs at all.
 
Back
Top