March 27th, 2017, 11:05 AM
CGI Returned 500 Internal Error
I am checking the error log for a domain I own and I see:
Why does the server report CGI when I do not run CGI scripts?
Mon 27 Mar 2017 11:47:04 -0400 | <PATH TO PHP FILE> | CGI returned 500 Internal Error
Could this be the problem? I made sure all .php scripts are 755 and I am wondering if the .js must be 755 as well.
What else will give a "CGI returned 500 Internal Error" error?
March 27th, 2017, 01:41 PM
CGI is a protocol for a web server to interact with something that can reasonably be called "executable", so unless that "CGI" is hardcoded into the logging then it implies you're using php-fpm and FastCGI.
The server is only reporting that the CGI whatever returned a 500. It doesn't know anything more. Adjust your logging so that you can get errors from PHP - that's where you need to look.
And no, it won't have anything to do with those files.