Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the directory path to the error logs for an Apache2/Redhat5.5 setup?

Also, something is wrong with my ~Google search strategy where I could not find this answer in less then 20 minutes? I.e., where should I be looking for configuration settings that are particular to Apache2/Redhat5.5 configurations?

share|improve this question

By default it's /var/log/httpd/

It's not default, it's redhat-specific. Other distros may have /var/log/apache2/ (Ubuntu/Debian) or /var/log/apache/. It's usually possible to check contents of the package to find log dir location. On rpm-based distros you can do it with following command: rpm -ql httpd | grep log. On my system it prints out number of files & directories and it's easy to realize that /var/log/httpd/ is what we are looking for.

share|improve this answer
Thanks. Is this the same for all or most Apache configurations on Linux or is this particular to RedHat5.5? – Roger Nov 27 '11 at 20:25
That is specific on Red Hat. For Ubuntu/Debian, its /var/log/apache2, and so does SLES. – Rilindo Nov 27 '11 at 23:29
@Rilindo thanks, I've updated my answer. – rvs Nov 28 '11 at 12:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.