Answers to: how do i disable apache2 errorlog?http://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog<p>how do i disable apache2 errorlog?</p>enWed, 05 May 2010 18:20:28 -0400Answer by codebunnyhttp://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog/309<p>But why would you want to? It contains valuable information to help you manage your webserver.</p>codebunnyWed, 05 May 2010 18:20:28 -0400http://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog/309Answer by jeremyhttp://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog/306<p>Depending how apache was ./configured, you may need to set the log to /dev/null to completely disable error logging.</p> <pre><code>ErrorLog /dev/null </code></pre> <p>--jeremy</p>jeremyWed, 05 May 2010 16:16:10 -0400http://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog/306Answer by gjcwilliamshttp://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog/305<p>You need to edit your apache configuration file. It should be in one of the following locations.</p> <pre><code>/etc/apache2/apache2.conf </code></pre> <p>or</p> <pre><code>/etc/httpd/httpd.conf </code></pre> <p>Edit this file and look for a line similar to the below;</p> <pre><code>ErrorLog /var/log/apache2/error.log </code></pre> <p>Comment out this line by placing a '#' at the beginning like so.</p> <pre><code>#ErrorLog /var/log/apache2/error.log </code></pre> <p>Restart your apache daemon</p> <pre><code>/etc/init.d/apache2 restart </code></pre> <p>Note paths may differ depending on your distribution but should give you something to work off!</p>gjcwilliamsWed, 05 May 2010 16:01:23 -0400http://linuxexchange.org/questions/303/how-do-i-disable-apache2-errorlog/305