Page 1 of 1

Limux - file history

Posted: Tue Oct 19, 2010 3:41 pm
by aceSpec
Hey,

Is there any way to view the history of a file. I have a php file thats named my-test.php. Some how, on a certian day, the ownership changed to apache and the file name became my_test.php.

I am looking for any sort of log, so see if I can track down what happened on that date. I've used

Code: Select all

stat <filename>
, but that only gives me info up to the last change (which is what im looking into);

Any tips for this situation?

Re: Limux - file history

Posted: Tue Oct 19, 2010 6:19 pm
by McInfo
Look in apache's log files, possibly "/var/log/apache2/access.log". The file may have been changed by a script. The access log should tell you what scripts were run on that date.