Spying on Apache and PHP with Strace
lsof -p pid // get open files of process#pid pidof command_name // get pid of command cut -c12-19 // only get 12-19 chars sort -rn // sort all text strace -p pid // to trace a process lsof filename // to list all processes opening this file or directory.