HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to disable Apache logging? (http://www.howtoforge.com/forums/showthread.php?t=52180)

karon 6th April 2011 21:16

How to disable Apache logging?
 
I have several high traffic sites that put a considerable IO load on the sytem because of their access and error logging. I can't find any option in ISPConfig 3 to disable logging on a site or the entire server.

How can this be done?

till 7th April 2011 00:04

Edit the ispconfig.conf file in /etc/apache2/sites-available and comment out the customlog line, then restart apache.

karon 7th April 2011 00:18

The line in question looks like this:

Quote:

CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" -d \"/etc/vlogger-dbi.conf\" /var/log/ispconfig/httpd" combined_ispconfig
So if I comment this out, error logging (that's defined in the sites individual vhost files) will still be on, right?

till 7th April 2011 00:42

yes. the line above is the access.log and not the error.log.

abubin 5th August 2011 06:47

how do is disable the access.log only? I don't see the customlog in the vhost file for the specified domain. Using ispconfig 3.0.2.2

till 5th August 2011 09:16

Just remove the line that is mentioned in post #3 from the apache config. It is in the ispconfig.conf file and not in a vhost as it is a global logging directive and not site specific.

cypriot 2nd February 2013 12:58

Found an easy way of doing this :)

go into website settings and options in admin of Ispconfig,
and add this two line into Apache Directives

CustomLog /dev/null Combined
AccessLog /dev/null Combined

you will see all logs will stop

i guess you guys can add tick box on the setting page of the site to add this two line auto ?

Regards


All times are GMT +2. The time now is 08:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.