IIS 7 and Above
Internal Server Error 500
Last post Jan 05, 2011 06:32 PM by HCamper
Jul 12, 2010 05:52 PM|jpickering2010|LINK
Internet Information Services 7.5
View more information »
Microsoft Knowledge Base Articles:
Jul 12, 2010 09:17 PM|don.raman|LINK
PHP parse Error: syntax error, unexpected $end and '}'
This means that the application you are runnning has syntax error which PHP reported. Because of this php-cgi.exe returned back error code and hence IIS gave you a 500. Please try fixing your code.
Jul 13, 2010 08:54 AM|jpickering2010|LINK
Well that would be a problem this code was taken from somewhere else by someone else and i'm not that familiar with PHP code i'm not sure I would know where to begin to fix it, this worked just fine on the other web server why would the new server have an
issue with it?
Jul 13, 2010 12:27 PM|don.raman|LINK
Jennifer, it's not IIS which is cause of the error. PHP interpreter (php-cgi.exe) is clearly showing you a syntax error. So this means there is an error. Also running on one web server doesn't automatically mean it will run on another web server. You can
have server dependent code which may not be portable etc.
Jan 05, 2011 06:17 PM|MySignInNameIsNotAnEmailAddress|LINK
Jan 05, 2011 06:32 PM|HCamper|LINK
Does IIS7 not display php errors at all then? How are php developers supposed to debug their code?
The Display ERRORS is not an IIS 7 or IIS 6 function.
The php.ini settings file has settings and overide to allow developers to display errors while testing and deugging.
The php.ini settings file has settings and overide to log errors to a file.
For production code the php.ini file settings are set to not display errors to a client while still logging errors.
The "Best Practice" for security is never display more information that could lead to a "hacker" using error
information to tamper with the server or data.
The users/clients in most majority of cases if presented with an error message in code can not do anything about it.
The errors from coding presented to clents cause confusion.