apache server error log directory

From :: http://www.cyberciti.biz/faq/apache-logs/

There are two types of Apache httpd host files:

Error Logs

CLICK HERE for a list of codes’ error (no email required)

All Apache errors / diagnostic information and any other errors foundThose during processing of saved requests are stored in this file. The location outside of the error is logged using the ErrorLog directive. If there is anything, the first thing to do is visually refer to this file using cat, grep, or other UNIX / Linux text-based utilities. This Apache music log file often contains detailed information about what happened, how it went wrong, and how to fix the device. Default error file log location:

  • RHEL via Red Hat / CentOS / Fedora Linux, Apache error file environment is / var / log / httpd / error_log
  • The location of the Debian / Ubuntu Linux Apache error file is /var/log/apache2/error.log
  • The location of the FreeBSD Apache error file is /var/log/httpd-error.log

To get the exact city from the Apache log file, you can use the grep command:
# grep / usr / local / etc / apache22 / httpd errorlog.conf
# grep ErrorLog /etc/apache2/apache2.conf
# grep ErrorLog /etc/httpd/conf/httpd.conf

Search error code:

Sample output:

 # ErrorLog: location of the error in the report file. Yes# You didn't fix the ErrorLog directive inErrorLog "/var/log/httpd-error.log" 

Access To Logs

CLICK HERE b to view a list of error codes. (no email required)

Open your mobile web phone and log into the cPanel admin interface of your corporate account.Usually scroll down the page until you find the Newspapers section.Click on the famous “Error Log” to open a new window with the last 300 error messages generated by your server.

The Apache server actually logs incoming requests and all processed assignments to a log file. The corresponding format of the access log is easily customizable. The location and content of the log access is provided by the Controlled CustomLog directive. Apache standard protocol in log file location:

  • The location of the RHEL / Red Hat / CentOS / Fedora Linux Apache access file is / var / log / httpd / access_log
  • Apache Debian and Ubuntu Linux signal location for access file is /var/log/apache2/access.log
  • FreeBSD Apache Trademark File – Location /var/log/httpd-access.log

To find the exact location of the Apache log file, you can use the grep grep command:
# CustomLog /usr/local/etc/apache22/httpd.conf
# grep CustomLog /etc/apache2/apache2.conf
# grep CustomLog /etc/httpd/conf/httpd.conf

Sample output:

apache server error log directory

 # CustomLog directive below) (see.#CustomLog "/var/log/httpd-access.log" in generalCustomLog "/var/log/httpd-access.log" merged