FreeKB - Apache (Web Server) error_log
Apache (Web Server) - error_log

The ErrorLog directive in a web servers configuration file (e.g. httpd.conf) is used to define the location of various log files, such as the error log, something like this.

ErrorLog logs/error_log

 

With this configuration, the error log would be located at:

<web_server_root>/logs/error_log

 

As the name implies, the error_log will capture events classified as an error. Here is an example of an error in error_log.

[Fri Mar 20 21:21:28.084472 2020] [unique_id:alert] [pid 3538:tid 139812487051072] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "server1"
AH00016: Configuration Failed

 

When using the apachectl command to start or restart the web server, the -e option followed by a log level (such as debug) can be used to append additional details to the error log.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 0c1ff in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |