I am running CentOS with cPanel, which creates a custom log directory and writes the logs there. The result is that the IO for the hard disk goes sky high.
If I do lsof
I got:
hostsite.com
httpd 2383 nobody 3779w REG 253,0 0 422463 /usr/local/apache/domlogs/mygamecardotcobnao.super hostsite.com-bytes_log
httpd 2383 nobody 3780w REG 253,0 5265 420994 /usr/local/apache/domlogs/myfreefreedatixuua.super hostsite.com
httpd 2383 nobody 3781w REG 253,0 36 422464 /usr/local/apache/domlogs/myfreefreedatixuua.super hostsite.com-bytes_log
httpd 2383 nobody 3782w REG 253,0 3101 415849 /usr/local/apache/domlogs/myfreedatingfrekeuo.supe rhostsite.com
httpd 2383 nobody 3783w REG 253,0 72 422465 /usr/local/apache/domlogs/myfreedatingfrekeuo.supe rhostsite.com-bytes_log
httpd 2383 nobody 3784w REG 253,0 672 419338 /usr/local/apache/domlogs/myfreedatingblogsxgo.sup erhostsite.com
httpd 2383 nobody 3785w REG 253,0 0 422466 /usr/local/apache/domlogs/myfreedatingblogsxgo.sup
Disabling this domlog is impossible because there are tons of those lines automatically generated.
I just want to point /usr/local/apache/domlogs/
to /dev/null
. Can that be done?
chmod 0 /usr/local/apache/domlogs/
) or remove it altogether? Can you create those log files beforehand as symlinks to /dev/null? – Stéphane Chazelas Dec 28 '12 at 01:41