Apache Http File Server
From : http://www.cyberciti.biz/faq/apache-logs/
There are two type of apache httpd server log files:
The enterprise Java community has made great strides to simplify file uploads from a web browser to a server. What was once a task that involved many cross-platform complications is now straightforward, and developers can choose from a multitude of options. Some of the most common web servers available for Windows services are Tomcat, Microsoft IIS (Internet Information Services), and of course the Apache server. Many server owners will choose to use a control panel which manages most of the common tasks usually needed to administer a web server such as e-mail and firewall configuration. The Apache HTTP Server Project is pleased to announce the release of version 2.4.46 of the Apache HTTP Server ('Apache' and 'httpd'). This version of Apache is our latest GA release of the new generation 2.4.x branch of Apache HTTPD and represents fifteen years of innovation by the project, and is recommended over all previous releases! HTTPD - Apache2 Web Server Apache is the most commonly used Web server on Linux systems. Web servers are used to serve Web pages requested by client computers. Clients typically request and view Web pages using Web browser applications such as Firefox, Opera, Chromium, or Internet Explorer.
Error Logs
All apache errors / diagnostic information other errors found while 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 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_log
- Debian / Ubuntu Linux Apache error log file location – /var/log/apache2/error.log
- FreeBSD Apache error log file location – /var/log/httpd-error.log
To find 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:
Access Logs
Apache 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_log
- Debian / Ubuntu Linux Apache access log file location – /var/log/apache2/access.log
- FreeBSD Apache access log file location – /var/log/httpd-access.log
Apache Http File Server Login
To 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: