too many of them.and it uesless to me.It generates over 1G log files in domlogs directory.
The server is getting slower.
I am trying to edit the httpd.conf file. And every virtual host has log setting.
Can I disable all domain apache logs?
Thanks
too many of them.and it uesless to me.It generates over 1G log files in domlogs directory.
The server is getting slower.
I am trying to edit the httpd.conf file. And every virtual host has log setting.
Can I disable all domain apache logs?
Thanks
You don't need to be disable apache log. you can do only empty the files under the directory domlogs, which is using more space then you will get more space availale .
fire the command as following to empty file :
echo > filename
Originally Posted by charliesxia
Or even better logrotate the logfiles. I do it every 24 hours and keeping 1 week gzipped backups. That keeps the domlogs dir low in size and apache/stats to run fast.
i add some ### infront fo the comm setting in the httpd.conf
seemed that the apache stop build all log files in the domlogs.nice!!
I thinks it is better than rotate the logfiles,reduce the some work for apache ,which will run faster than before.
But the Awstats and others will not be able to generate the report also as there is no data.
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
i think that by commenting the customlog entry of a vhost, will make it log into the default apache access_log (/usr/local/apache/logs/acces_log )
If that is your case, apart from commenting every customlog entry, you need to redirect de default access_log to /dev/null
Reliable dedicated and colocation services in Romania
www.etp.ro
True, but there are alot of customers that do their own logging, and don;'t need more stats from awstatsOriginally Posted by rvskin
to disable secific customers, edit the Customlog entry to point to /dev/null
Reliable dedicated and colocation services in Romania
www.etp.ro
how chould i disable apache2 all logs . or rotate th logs every 12 hours ?
please with instruction .
<<BUMP>>
I have two domains that go over the 2G filesize in domlogs.
As the user above, I would like to rotate logs avery day, keeping two or three zipped days as a trail.
Colorful system log reporting is no longer important. I use grep when sifting for trouble.