Disable Apache Error Log Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss ubuntu disable apache module the workings and policies of this site About Us Learn more check apache error log ubuntu about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow
View Apache Error Log Ubuntu
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping
How To See Apache Error Log In Ubuntu
each other. Join them; it only takes a minute: Sign up disabling apache logging to access.log [closed] up vote 7 down vote favorite I've been reading about disabling the logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk. I've tried changing http.conf and directing stuff linux apache error log to /dev/null, but none of it worked, as most of it was the Error logging. Any idea anyone? Thanks linux apache logging share|improve this question asked Nov 25 '12 at 15:14 Alon_T 41831029 closed as off-topic by Matteo Tassinari, HansUp, user000001, Mike, Ruchira Gayan Ranaweera Sep 2 '13 at 17:05 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – Matteo Tassinari, HansUp, user000001, Mike, Ruchira Gayan RanaweeraIf this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted In order to disable and turn off the Apache logging, just comment out the log lines in the Apache configuration file. Read more here. share|improve this answer answered Nov 25 '12 at 15:24 undone
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Ubuntu Php Error Log
of this site About Us Learn more about Stack Overflow the company ubuntu mysql error log Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users apache2 disable access log Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/13552312/disabling-apache-logging-to-access-log minute: Sign up Disable apache2 log up vote 2 down vote favorite 1 I only have 32GB on my server, and the logs is eating up that space quickly. So I want to disable the logs. I think I found where to do it, but since I'm a complete noob when it comes to server, I don't want to start changing things http://stackoverflow.com/questions/10794612/disable-apache2-log without being sure that they won't crash the server. In etc/apache2/apache2.conf, I found this: # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent and in etc/apache2/conf.d/other-vhost-access-log, I found this: # Define an access log for VirtualHosts that don't define their own logfile CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined What do I need to do to disable the logs? Thanks in advance php apache apache2 debian share|improve this question asked May 29 '12 at 7:11 BlackMouse 1,57621737 2 Add log rotate to system –Sergey May 29 '12 at 7:16 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted If you truly want to disable the logs, you must comment out any ErrorLog and Cust
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://superuser.com/questions/916726/disable-apache-logging-completely more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up error log and rise to the top Disable Apache logging completely up vote 1 down vote favorite I have an old server running online with over 250 sites on it I am not sure, but maybe too many logfiles in the apachelog are slowing down the server? Now since I don't need the Apache logs, How do I disable all logging completely? apache-http-server logging share|improve this question edited May 19 '15 apache error log at 15:47 asked May 19 '15 at 14:58 rubo77 88131742 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted I disabled all vhosts logging with: find /etc/apache2/sites-enabled/* -exec sed -i 's/#*[Cc]ustom[Ll]og/#CustomLog/g' {} \; find /etc/apache2/sites-enabled/* -exec sed -i 's/#*[Ee]rror[Ll]og/#ErrorLog/g' {} \; and commented out in /etc/apache2/apache2.conf #ErrorLog ${APACHE_LOG_DIR}/error.log and added ErrorLog /dev/null Restart apache gracefully: apache2ctl graceful I have a lot of logs in different places so I can watch the result with tail -n 1 -f /var/kunden/logs/*log /var/kunden/logs/*log /var/log/apache2/*log If you want to enable all logging into one file you can edit /etc/apache2/apache2.conf again and add those lines: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log "%h %v %l %u %t \"%r\" %>s %b" and comment out #ErrorLog /dev/null share|improve this answer edited May 19 '15 at 16:02 answered May 19 '15 at 14:58 rubo77 88131742 add a comment| You must log in to answer this question. Not the answer you're looking for? Browse other questions tagged apache-http-server logging . asked 1 year ago viewed 1899 times active 1 year ago Linked 1 Are too many logfiles in the apachelog slowing down the server? Related 4Is there a free security log analyzer for apache?0Opening a 28GB Apache access log1access apache log files