How to View Apache error logs

If you’re new to running your own server, sometimes just finding things is the hardest thing to do. I spent a good 15 min trying to find mine, so here’s some info to help you.

Your system may vary. All my postings are from CentOS 5, running php 5.2.x, mysql 5.0.2x, and apache 2.2.x

You may need root-level access to see some of these as well.

I use pico. Some people like VI, some like VIM, some like NANO. I use pico. It’s just a text viewer.

View apache error_log

pico /usr/local/apache/logs/error_log

Send the text file to your website to make it viewable

cp /usr/local/apache/logs/error_log  /home/SITEPATH/public_html

You can then view it in http://site.com/error_log. Firefox will open it up with out a download prompt.

This entry was posted in Server Administration and tagged , , . Bookmark the permalink.

2 Responses to How to View Apache error logs

  1. svekaria says:

    Thanks! quick and useful :)

  2. In Ubuntu 10.04, you can view error logs at /var/log/apache2/error.log ;-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>