Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Where are Apache file access logs stored?

Does anyone know where file access logs are stored, so I can run a tail -f command in order to see who is accessing a particular file.

I have XAMPP, which is an Apache server installed on my machine, which automatically logs the accesses. It is stored in my installation folder.
by

1 Answer

Amit8z4mc
Ultimately, this depends on your Apache configuration. Look for CustomLog directives in your Apache configuration.

A typical location for all log files is /var/log and subdirectories. Try /var/log/apache/access.log or /var/log/apache2/access.log or /var/log/httpd/access.log. If the logs aren't there, try running locate access.log access_log.

Login / Signup to Answer the Question.