Home > Apache > How to access Apache web server (httpd) error logs for Amazon EC2 Linux and most other Linux varieties also.
Bookmark and Share

How to access Apache web server (httpd) error logs for Amazon EC2 Linux and most other Linux varieties also.

Posted on June 03, 2013 | Filed in Apache, Linux

1. SSH into the system.

2. Then change to Superuser using the “su” command.

3. Then change directory like so: cd /var/log/httpd/

4. Now use this syntax at the command prompt:
tail -n 300 error_log-20130602 | more

This will show you the last 300 lines of the error log file error_log-20130602

The “| more” just splits up the output into more than one screen. So that you can the complete text of the error logs.

The opposite of “tail” is “head” which instead of the last lines of errors, will show you the first few lines of errors.

There are more logs for you here: /var/log/

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog