Hello,

All of a sudden my index.php file is creating a core dump and returning error 500 when browsing it. I haven't changed any of the coding in the php file. It only creates this error in two of my php files, the others are fine and unaffected. Any ideas what could be causing this problem? I've contacted my host but they're about as quick as a brick answering my issues.

Hope you can help/point me in the right direction.

Thanks

    It seems PHP is installed as a CGI and not as module.
    Check whether the file permission is set to 700. If your file permission is set to something else (e.g., 644), you will get a 500 - Internal Server Error. Note: Setting the file permission to 711 or 755 will not give you a 500 error

    When the file/directory permissions are set correctly, and you are still getting a 500 error, open the file using pico and save it (Ctrl+o). This simple step may solve your problem because it converts Windows CR/LF (carriage return/line feed) to Unix LF (line feed) or Mac CR to Unix LF.

    Make sure you upload the php files in ascii mode and not in binary mode.

      Thanks for the quick reply.

      The file is set at 755 for its permission.

      Re-saved the file using pico, no joy. Tried a backup copy from a couple of weeks ago that worked, no joy.
      I do seem to recall now, when I was editing a couple of files via CPanel, when I save one of the files it came back with the message
      "/ File Saved" could this have something to do with it? Or could my host have changed something to give this error on some php files but not others?

        Write a Reply...