Malicious-Code-Scanner
Malicious-Code-Scanner copied to clipboard
Internal Server Error when running
Awesome script!!
Runs for a bit, then gives me an Internal Server Error...
What limits do I need to change php.ini ?
I'm having the same issue.
Hmm actually, it appears to be working, as I did receive a summary email, but perhaps the code just doesn't finish cleanly?
Can you share the error you're getting in the error log? Thanks!
I'm actually in the middle of a completely hacked cPanel at the moment (including this .php file :-( ) but hopefully I can help debug this once I can get my server cleaned up.
FYI: I experienced the same error.
The log showed that the error is: PHP Fatal error: Maximum execution time of 30 seconds exceeded in Path to script.
I added ini_set('max_execution_time', 300); //300 seconds = 5 minutes to the file, and moved it into sub directories. This seems to happen when 1. the scan takes too long, or 2. the scan runs into permission problems.
I ran into some server errors when running the script on some sites too - the PR here works correctly in these instances though; https://github.com/mikestowe/Malicious-Code-Scanner/pull/8/commits/59d2dab8bcce103f50dc7bc1705808a6ef205496