How to check Apache log files ?
font=Arial]APACHE LOG FILES[/font]
In order to effectively manage a web server, it is necessary to get feedback about the activity and performance of the server as well as any problems that may be occuring. The Apache HTTP Server provides very comprehensive and flexible logging capabilities.
Apache maintains two log files namely Error_log and access_logs
Error_log >>>> /usr/local/apache/logs/error_log
Access_log >>>> /usr/local/apache/logs/access_log
You can see more recent errors or entries from log files by entering following command at root prompt.
tail -20 /usr/local/apache/logs/error_log << displays last 20 entries
tail -200 /usr/local/apache/logs/access_log <<< Last 200 entries.
A very wide variety of different messages can appear in the error log. Most look similar. The error log will also contain debugging output from CGI scripts. Any information written to stderr by a CGI script will be copied directly to the error log.
Note: Always check apache logs to resolve apache issues and save time