Centos – Apache not generating access log. CentOS

apache-2.2centos

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

Best Answer

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.