Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
    
On what distribution, or with what hosting provider? Logs are typically under /var/log, but some systems have them elsewhere. –  Gilles May 19 '12 at 12:51
add comment

1 Answer

up vote 5 down vote accepted

Ultimately, this depends on your Apache configuration. Look for CustomLog directives in your Apache configuration, see the manual for examples.

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

share|improve this answer
add comment

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.