Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

how do i disable apache2 errorlog?

asked 05 May '10, 14:58

S2eve's gravatar image

S2eve
37159
accept rate: 0%




Depending how apache was ./configured, you may need to set the log to /dev/null to completely disable error logging.

ErrorLog /dev/null

--jeremy

link

answered 05 May '10, 16:16

jeremy's gravatar image

jeremy ♦♦
1.0k1516
accept rate: 37%

You need to edit your apache configuration file. It should be in one of the following locations.

/etc/apache2/apache2.conf

or

/etc/httpd/httpd.conf

Edit this file and look for a line similar to the below;

ErrorLog /var/log/apache2/error.log

Comment out this line by placing a '#' at the beginning like so.

#ErrorLog /var/log/apache2/error.log

Restart your apache daemon

/etc/init.d/apache2 restart

Note paths may differ depending on your distribution but should give you something to work off!

link

answered 05 May '10, 16:01

gjcwilliams's gravatar image

gjcwilliams
35729
accept rate: 37%

But why would you want to? It contains valuable information to help you manage your webserver.

link

answered 05 May '10, 18:20

codebunny's gravatar image

codebunny
40816
accept rate: 38%

Agreed! I guess he has lots of errors that he wants to tuck away under the carpet :)

(06 May '10, 06:23) gjcwilliams
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1

Asked: 05 May '10, 14:58

Seen: 12,643 times

Last updated: 05 May '10, 18:20

powered by OSQA