Malicious-Code-Scanner icon indicating copy to clipboard operation
Malicious-Code-Scanner copied to clipboard

Internal Server Error when running

Open eberswine opened this issue 9 years ago • 6 comments

Awesome script!!

Runs for a bit, then gives me an Internal Server Error...

What limits do I need to change php.ini ?

eberswine avatar Jul 29 '15 17:07 eberswine

I'm having the same issue.

neocamel avatar Feb 06 '16 22:02 neocamel

Hmm actually, it appears to be working, as I did receive a summary email, but perhaps the code just doesn't finish cleanly?

neocamel avatar Feb 06 '16 22:02 neocamel

Can you share the error you're getting in the error log? Thanks!

mikestowe avatar Feb 07 '16 16:02 mikestowe

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.

neocamel avatar Feb 08 '16 06:02 neocamel

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.

Dejavou42 avatar Mar 05 '16 05:03 Dejavou42

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

coliff avatar Mar 16 '17 11:03 coliff