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

For some reason, Apache is not generating logs in /var/log/httpd/access_log. How do I see if logging enabled?

share|improve this question
up vote 2 down vote accepted

Unless you're piping to a program (like, e.g., cronolog), here's a handy trick for finding log files:

for pid in $(pidof httpd); do ls -l /proc/$pid/fd; done | awk '/^l/ {print $11}' | sort | uniq

If you are using a program like cronolog, just swap out "httpd" in favor of "cronolog" in the above example.

share|improve this answer

This is presumably the same on Centos.

In each vhost file you can add:

CustomLog /var/log/apache2/default_http_access_log combined

That one above is for 001-default the HTTP default vhost (not SSL) and I just change them per vhost and this is the catch all.

share|improve this answer
Otherwise check /var/log/httpd permissions. – Jonathan Ross Apr 10 '11 at 15:06

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.