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?


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.

  • Is there a way to do this across an entire site, or just for a single page? – Glen Solsberry Jun 11 '10 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.