Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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

 
discard

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.