Glen Solsberry Asked: 2010-06-09 04:50:56 +0800 CST2010-06-09 04:50:56 +0800 CST 2010-06-09 04:50:56 +0800 CST Logging all commands run by PHP 772 Somehow, one of our sites continues to be compromised. Is there a way that I can log every command that PHP runs, either via system(), exec(), etc? php logging 1 Answers Voted Best Answer Kevin Sedgley 2010-06-09T05:40:51+08:002010-06-09T05:40:51+08:00 You can use override-function, and rename_function rewrite the system and exec commands, do a stack trace from there and log it to a file.
You can use override-function, and rename_function rewrite the system and exec commands, do a stack trace from there and log it to a file.