Debian Apache Error Logs
Contents |
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 more about Stack Overflow the company Business Learn more about debian apache log location hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question
Apache Error Logs Ubuntu
_ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign apache error logs cpanel up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Debugging Apache on Debian, where are the error logs? up vote 6 down vote favorite 3 apache error logs centos I'm using a Debian server that already has Apache, mod_wsgi and a bunch of virtual hosts successfully running on it. I installed my forum app (Django's OSQA) and following the OSQA instructions, I then created an Apache config file that specified ServerName as the new sub-domain. I also created a .wsgi file for the app, and pointed WSGIScriptAlias at it. I then restarted Apache. However, when I go to the new sub-domain, I get a 404 error message. Am
Linux Apache Error Log
I missing a step above? Or is simply creating a new Apache config file in sites-available enough to tell Apache about a new sub-domain? If there's something else going wrong, how can I debug it? The ErrorLog and CustomLog specified in the config file are both blank. apache2.conf, which I guess is Apache-wide configuration, specifies ErrorLog /var/log/apache2/error.log, but this is yet another blank file. debian apache-http-server logging share|improve this question edited Apr 5 '12 at 23:41 random♦ 10.4k83954 asked Aug 9 '10 at 15:32 AP257 70236 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote There are a lot of online resources for Apache. Did you try searching Google to find the answers yourself? When I searched Google a few months ago, I found the following information: ErrorLog /var/log/apache2/error.log AccessLog /var/log/apache2/access.log start/stop /etc/init.d/apache2 (start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean) share|improve this answer edited Aug 10 '10 at 16:37 BloodPhilia 21.4k66091 answered Aug 10 '10 at 16:32 Tom 1,11567 add a comment| up vote 5 down vote The first post is not correct for all cases on Debian. It depends on how you have installed the package, whether that is via apt or by compiling from source. To find out where the logs are, according to how Apache says it was instructed to generate logs you will want to run the following command: /usr/sbin/apachectl -V some distributions of linux create a symlink called /usr/sbin/apacheVERctl where VE
FreeBSD, HP-UX Unix, Linux, Openbsd, RedHat and Friends, Solaris-Unix, Suse, Ubuntu LinuxQ. How do I find out Apache http server log files location? How do I change the location of apache startup log Apache log file under Linux / UNIX operating system? A. There are php error logs two type of apache httpd server log files:
Apache Error Log FileAll apache errors / diagnostic information other errorsMysql Error Logs
found during serving requests are logged to this file. Location of error log is set using ErrorLog directive. If there is any problem, you should first take a look at this file http://superuser.com/questions/173833/debugging-apache-on-debian-where-are-the-error-logs using cat, grep or any other UNIX / Linux text utilities. This apache log file often contain details of what went wrong and how to fix it. Default error log file location:RHEL / Red Hat / CentOS / Fedora Linux Apache error file location - /var/log/httpd/error_logDebian / Ubuntu Linux Apache error log file location - /var/log/apache2/error.logFreeBSD Apache error log file location - /var/log/httpd-error.logTo find http://www.cyberciti.biz/faq/apache-logs/ exact apache log file location, you can use grep command: # grep ErrorLog /usr/local/etc/apache22/httpd.conf
# grep ErrorLog /etc/apache2/apache2.conf
# grep ErrorLog /etc/httpd/conf/httpd.conf Sample output:# ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a ErrorLog "/var/log/httpd-error.log" Apache Access Log FileApache server records all incoming requests and all requests processed to a log file. The format of the access log is highly configurable. The location and content of the access log are controlled by the CustomLog directive. Default apache access log file location:RHEL / Red Hat / CentOS / Fedora Linux Apache access file location - /var/log/httpd/access_logDebian / Ubuntu Linux Apache access log file location - /var/log/apache2/access.logFreeBSD Apache access log file location - /var/log/httpd-access.logTo find exact apache log file location, you can use grep command: # grep CustomLog /usr/local/etc/apache22/httpd.conf
# grep CustomLog /etc/apache2/apache2.conf
# grep CustomLog /etc/httpd/conf/httpd.conf Sample output: # a CustomLog directive (see below). #CustomLog "/var/log/httpd-access.log" common CustomLog "/var/log/httpd-access.log" combined How do I change Apache log file location?Simply edit apache configuration file and change the location. You need define new location using CustomLog or ErrorLog:ErrorLog "/home/httpd/cyberciti.biz/rawlogs/httpd-
a comment Question: I am trying to troubleshoot Apache web server errors on my Linux system. Where is the Apache error log file located on [insert your http://ask.xmodulo.com/apache-error-log-location-linux.html Linux distro]? Error log and access log files are a useful piece of information for system admins, for example to troubleshoot their web server, protect it from various malicious activities, or just to run various http://serverfault.com/questions/287079/cant-find-apache-error-logs analytics for HTTP server monitoring. Depending on your web server setup, its error/access logs may be found in different places on your system. This post may help you find Apache error log location on Linux. error log Apache Error Log Location on Debian, Ubuntu or Linux Mint Default Error Log On Debian-based Linux, the system-wide default location of Apache error log is /var/log/apache2/error.log. The default location can be customized by editing Apache configuration file. Custom Error Log To find a custom error log location, open /etc/apache2/apache2.conf with a text editor, and look for a line that starts with ErrorLog. This line specifies a custom location of apache error log Apache error log file. For example, the unmodified Apache configuration file has the following line: ErrorLog ${APACHE_LOG_DIR}/error.log In this case, the location is configured using APACHE_LOG_DIR environment variable, which is defined in /etc/apache2/envvars. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX In reality, ErrorLog may point to any arbitrary path on your Linux system. Custom Error Log with VirtualHost If VirtualHost is used in Apache web server, ErrorLog directive can be specified within VirtualHost container, in which case the system-wide error log location described above will be ignored. With VirtualHost enabled, each VirtualHost can define its own custom error log location. To find out the error log location of a particular VirtualHost, you can open /etc/apache2/sites-enabled/
Start 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 more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. 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 and rise to the top Can't find apache error logs up vote 3 down vote favorite It seems my server doesn't have error logs . i can't find them anywhere . in info.php file there is no mention about any error log. I tried commands like pico /usr/local/apache/logs/error_log ,but of course,no results. How can i find the apache error logs and view them ? thanks for the help apache-2.2 logging share|improve this question asked Jul 5 '11 at 8:27 whitelord migrated from stackoverflow.com Jul 5 '11 at 11:16 This question came from our site for professional and enthusiast programmers. this is a perfect question for Google I think :-) –mnicky Jul 5 '11 at 8:29 ok, to help you a little bit: cyberciti.biz/faq/apache-logs ;-) –mnicky Jul 5 '11 at 8:31 thanks,but i already tried that. nothing happens. maybe i do something wrong..i am a newbie .. –whitelord Jul 5 '11 at 8:36 find your httpd.conf and try: grep 'ErrorLog\|CustomLog' httpd.conf –mnicky Jul 5 '11 at 8:42 2 On CentOS it should be /var/log/httpd/error_log and /var/log/httpd/access_log –mnicky Jul 5 '11 at 9:04 | show 9 more comments 2 Answers 2 active oldest votes up vote 6 down vote Default apache error log location, by distro's: RHEL / Red Hat / CentOS / Fedora - /var/log/httpd/error_log Debian / Ubuntu - /var/log/apache2/error.log FreeBSD - /var/log/httpd-error.log To find exact apache error log file location, you can use grep command: # grep ErrorLog /usr/local/etc/apache22/httpd.conf # grep ErrorLog /etc/apache2/apache2.conf # grep ErrorLog /etc/httpd/conf/httpd.conf Sample output: # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a ErrorLog "/var/log/httpd-error.log" Source. share|improve this answer edited Jul 5 '11 at 12:05 answered Jul 5 '11 at 11:5