#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    750
    Rep Power
    123

    CGI Returned 500 Internal Error


    I am checking the error log for a domain I own and I see:
    PHP Code:
    Mon 27 Mar 2017 11:47:04 -0400 | <PATH TO PHP FILE> | CGI returned 500 Internal Error 
    Why does the server report CGI when I do not run CGI scripts?

    I found several javascript files that I use in the pages that I serve. Those files were not 755 and I changed it to 755.
    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?
  2. #2
  3. Forgotten Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    15,976
    Rep Power
    9615
    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.

IMN logo majestic logo threadwatch logo seochat tools logo