0

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?

1 Answer 1

3

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.

2
  • Thanks. Is this the same for all or most Apache configurations on Linux or is this particular to RedHat5.5?
    – Roger
    Nov 27, 2011 at 20:25
  • 1
    That is specific on Red Hat. For Ubuntu/Debian, its /var/log/apache2, and so does SLES.
    – Rilindo
    Nov 27, 2011 at 23:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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