Internal Server Error 500 [Answered]RSS

5 replies

Last post Jan 05, 2011 06:32 PM by HCamper

  • Internal Server Error 500

    Jul 12, 2010 05:52 PM|jpickering2010|LINK

    Hello, I am trying to resolve a Internal Server Error 500 below I have copied the log also the php log indicates PHP parse Error: syntax error, unexpected $end and '}'. I recently moved from a Cobalt server to a Windows Web Server 08 64bit, I have other php pages that are loading but another section that is returning the 500 error and I am soon to have lost my mind reading and tweaking but am coming to nothing that seems to be working....any help would be much appreciated. No. EventName Details Time 1. i GENERAL_REQUEST_START SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610612787", RawConnId="0", RequestURL="http://www.fordcounty.net:80/wantedinfo/index1.php", RequestVerb="GET" 20:55:07.938 2. — GENERAL_SET_REQUEST_HEADER HeaderName="AspFilterSessionId", HeaderValue="", Replace="true" 20:55:07.938 3. i GENERAL_ENDPOINT_INFORMATION RemoteAddress="209.203.160.139", RemotePort="49491", LocalAddress="209.203.160.139", LocalPort="80" 20:55:07.938 4. i GENERAL_REQUEST_HEADERS Headers="Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en-US Host: www.fordcounty.net User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) " 20:55:07.938 5. i HANDLER_PRECONDITION_NOT_MATCH Name="ExtensionlessUrl-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 6. i HANDLER_PRECONDITION_NOT_MATCH Name="AXD-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 7. i HANDLER_PRECONDITION_NOT_MATCH Name="PageHandlerFactory-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 8. i HANDLER_PRECONDITION_NOT_MATCH Name="SimpleHandlerFactory-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 9. i HANDLER_PRECONDITION_NOT_MATCH Name="WebServiceHandlerFactory-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 10. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 11. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-soap-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 12. i HANDLER_PRECONDITION_NOT_MATCH Name="svc-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 13. i HANDLER_PRECONDITION_NOT_MATCH Name="rules-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 14. i HANDLER_PRECONDITION_NOT_MATCH Name="xoml-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 15. i HANDLER_PRECONDITION_NOT_MATCH Name="xamlx-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 16. i HANDLER_PRECONDITION_NOT_MATCH Name="aspq-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 17. i HANDLER_PRECONDITION_NOT_MATCH Name="cshtm-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 18. i HANDLER_PRECONDITION_NOT_MATCH Name="cshtml-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 19. i HANDLER_PRECONDITION_NOT_MATCH Name="vbhtm-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 20. i HANDLER_PRECONDITION_NOT_MATCH Name="vbhtml-ISAPI-4.0_32bit", Precondition="classicMode,runtimeVersionv4.0,bitness32" 20:55:07.938 21. i HANDLER_PRECONDITION_NOT_MATCH Name="ExtensionlessUrl-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 22. i HANDLER_PRECONDITION_NOT_MATCH Name="AXD-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 23. i HANDLER_PRECONDITION_NOT_MATCH Name="PageHandlerFactory-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 24. i HANDLER_PRECONDITION_NOT_MATCH Name="SimpleHandlerFactory-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 25. i HANDLER_PRECONDITION_NOT_MATCH Name="WebServiceHandlerFactory-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 26. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-rem-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 27. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-soap-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 28. i HANDLER_PRECONDITION_NOT_MATCH Name="svc-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 29. i HANDLER_PRECONDITION_NOT_MATCH Name="rules-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 30. i HANDLER_PRECONDITION_NOT_MATCH Name="xoml-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 31. i HANDLER_PRECONDITION_NOT_MATCH Name="xamlx-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 32. i HANDLER_PRECONDITION_NOT_MATCH Name="aspq-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 33. i HANDLER_PRECONDITION_NOT_MATCH Name="cshtm-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 34. i HANDLER_PRECONDITION_NOT_MATCH Name="cshtml-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 35. i HANDLER_PRECONDITION_NOT_MATCH Name="vbhtm-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 36. i HANDLER_PRECONDITION_NOT_MATCH Name="vbhtml-ISAPI-4.0_64bit", Precondition="classicMode,runtimeVersionv4.0,bitness64" 20:55:07.938 37. i HANDLER_PRECONDITION_NOT_MATCH Name="ExtensionlessUrl-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 38. i HANDLER_PRECONDITION_NOT_MATCH Name="TraceHandler-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 39. i HANDLER_PRECONDITION_NOT_MATCH Name="WebAdminHandler-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 40. i HANDLER_PRECONDITION_NOT_MATCH Name="AssemblyResourceLoader-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 41. i HANDLER_PRECONDITION_NOT_MATCH Name="PageHandlerFactory-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 42. i HANDLER_PRECONDITION_NOT_MATCH Name="SimpleHandlerFactory-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 43. i HANDLER_PRECONDITION_NOT_MATCH Name="WebServiceHandlerFactory-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 44. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-rem-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 45. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-soap-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 46. i HANDLER_PRECONDITION_NOT_MATCH Name="svc-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 47. i HANDLER_PRECONDITION_NOT_MATCH Name="rules-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 48. i HANDLER_PRECONDITION_NOT_MATCH Name="xoml-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 49. i HANDLER_PRECONDITION_NOT_MATCH Name="xamlx-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 50. i HANDLER_PRECONDITION_NOT_MATCH Name="aspq-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 51. i HANDLER_PRECONDITION_NOT_MATCH Name="cshtm-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 52. i HANDLER_PRECONDITION_NOT_MATCH Name="cshtml-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 53. i HANDLER_PRECONDITION_NOT_MATCH Name="vbhtm-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 54. i HANDLER_PRECONDITION_NOT_MATCH Name="vbhtml-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 55. i HANDLER_PRECONDITION_NOT_MATCH Name="ScriptHandlerFactoryAppServices-Integrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 56. i HANDLER_PRECONDITION_NOT_MATCH Name="ScriptResourceIntegrated-4.0", Precondition="integratedMode,runtimeVersionv4.0" 20:55:07.938 57. i HANDLER_PRECONDITION_NOT_MATCH Name="rules-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 58. i HANDLER_PRECONDITION_NOT_MATCH Name="rules-64-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 59. i HANDLER_PRECONDITION_NOT_MATCH Name="xoml-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 60. i HANDLER_PRECONDITION_NOT_MATCH Name="xoml-64-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 61. i HANDLER_PRECONDITION_NOT_MATCH Name="svc-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 62. i HANDLER_PRECONDITION_NOT_MATCH Name="svc-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 63. i HANDLER_PRECONDITION_NOT_MATCH Name="AXD-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 64. i HANDLER_PRECONDITION_NOT_MATCH Name="PageHandlerFactory-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 65. i HANDLER_PRECONDITION_NOT_MATCH Name="SimpleHandlerFactory-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 66. i HANDLER_PRECONDITION_NOT_MATCH Name="WebServiceHandlerFactory-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 67. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-rem-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 68. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-soap-ISAPI-2.0", Precondition="classicMode,runtimeVersionv2.0,bitness32" 20:55:07.938 69. i HANDLER_PRECONDITION_NOT_MATCH Name="AXD-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 70. i HANDLER_PRECONDITION_NOT_MATCH Name="PageHandlerFactory-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 71. i HANDLER_PRECONDITION_NOT_MATCH Name="SimpleHandlerFactory-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 72. i HANDLER_PRECONDITION_NOT_MATCH Name="WebServiceHandlerFactory-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 73. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-rem-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 74. i HANDLER_PRECONDITION_NOT_MATCH Name="HttpRemotingHandlerFactory-soap-ISAPI-2.0-64", Precondition="classicMode,runtimeVersionv2.0,bitness64" 20:55:07.938 75. i GENERAL_GET_URL_METADATA PhysicalPath="", AccessPerms="513" 20:55:07.953 76. i MODULE_PRECONDITION_NOT_MATCH Name="ServiceModel-4.0", Precondition="managedHandler,runtimeVersionv4.0" 20:55:07.953 77. i MODULE_PRECONDITION_NOT_MATCH Name="UrlRoutingModule-4.0", Precondition="managedHandler,runtimeVersionv4.0" 20:55:07.953 78. i MODULE_PRECONDITION_NOT_MATCH Name="ScriptModule-4.0", Precondition="managedHandler,runtimeVersionv4.0" 20:55:07.953 79. i HANDLER_CHANGED OldHandlerName="", NewHandlerName="PHP via FastCGI", NewHandlerModules="FastCgiModule", NewHandlerScriptProcessor="C:\Program Files (x86)\PHP\php-cgi.exe", NewHandlerType="" 20:55:07.953 80. i MODULE_PRECONDITION_NOT_MATCH Name="OutputCache", Precondition="managedHandler" 20:55:07.953 81. i MODULE_PRECONDITION_NOT_MATCH Name="Session", Precondition="managedHandler" 20:55:07.953 82. i MODULE_PRECONDITION_NOT_MATCH Name="WindowsAuthentication", Precondition="managedHandler" 20:55:07.953 83. i MODULE_PRECONDITION_NOT_MATCH Name="FormsAuthentication", Precondition="managedHandler" 20:55:07.953 84. i MODULE_PRECONDITION_NOT_MATCH Name="DefaultAuthentication", Precondition="managedHandler" 20:55:07.953 85. i MODULE_PRECONDITION_NOT_MATCH Name="RoleManager", Precondition="managedHandler" 20:55:07.953 86. i MODULE_PRECONDITION_NOT_MATCH Name="UrlAuthorization", Precondition="managedHandler" 20:55:07.953 87. i MODULE_PRECONDITION_NOT_MATCH Name="FileAuthorization", Precondition="managedHandler" 20:55:07.953 88. i MODULE_PRECONDITION_NOT_MATCH Name="AnonymousIdentification", Precondition="managedHandler" 20:55:07.953 89. i MODULE_PRECONDITION_NOT_MATCH Name="Profile", Precondition="managedHandler" 20:55:07.953 90. i MODULE_PRECONDITION_NOT_MATCH Name="UrlMappingsModule", Precondition="managedHandler" 20:55:07.953 91. i MODULE_PRECONDITION_NOT_MATCH Name="ServiceModel", Precondition="managedHandler,runtimeVersionv2.0" 20:55:07.953 92. i USER_SET AuthType="", UserName="", SupportsIsInRole="true" 20:55:07.953 93. i FASTCGI_ASSIGN_PROCESS CommandLine="C:\Program Files (x86)\PHP\php-cgi.exe", IsNewProcess="false", ProcessId="3436", RequestNumber="15" 20:55:07.953 94. i FASTCGI_START 20:55:07.953 95. — FASTCGI_WAITING_FOR_RESPONSE 20:55:07.953 96. i FASTCGI_END 20:55:07.953 97. i FASTCGI_RESPONSE_WRITTEN 20:55:07.953 98. i GENERAL_SEND_CUSTOM_ERROR HttpStatus="500", HttpSubStatus="0", FileNameOrURL="500.htm" 20:55:07.953 99. i GENERAL_FLUSH_RESPONSE_START 20:55:07.953 100. i GENERAL_RESPONSE_HEADERS Headers="Cache-Control: private Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 X-Powered-By: PHP/5.3.2 X-Powered-By: ASP.NET " 20:55:07.953 101. — GENERAL_RESPONSE_ENTITY_BUFFER Buffer=" <div id="header">

    Server Error in Application "DEFAULT WEB SITE"

    </div> <div id="server_version">

    Internet Information Services 7.5

    </div> <div id="content"> <div class="content-container">
    Error Summary

    HTTP Error 500.0 - Internal Server Error

    The page cannot be displayed because an internal server error has occurred.

    </div> <div class="content-container">
    Detailed Error Information <div id="details-left">
    Module FastCgiModule
    Notification ExecuteRequestHandler
    Handler PHP via FastCGI
    Error Code 0x00000000
    </div> <div id="details-right">
    Requested URL http://www.fordcounty.net:80/wantedinfo/index1.php
    Physical Path C:\inetpub2\wwwroot\wantedinfo\index1.php
    Logon Method Anonymous
    Logon User Anonymous
    Failed Request Tracing Log Directory C:\inetpub2\logs\FailedReqLogFiles
    <div class="clear"></div> </div>
    </div> <div class="content-container">
    Most likely causes:
      %09
    • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. %09
    • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly. %09
    • IIS was not able to process configuration for the Web site or application. %09
    • The authenticated user does not have permission to use this DLL. %09
    • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.
    </div> <div class="content-container">
    Things you can try:
      %09
    • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account. %09
    • Check the event logs to see if any additional information was logged. %09
    • Verify the permissions for the DLL. %09
    • Install the .NET Extensibility feature if the request is mapped to a managed handler. %09
    • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.
    </div> <div class="content-container">
    Links and More Information This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

    View more information »

    Microsoft Knowledge Base Articles:

    • 294807
    </div> </div> " 20:55:07.953 102. i GENERAL_FLUSH_RESPONSE_END BytesSent="6429", ErrorCode="The operation completed successfully. (0x0)" 20:55:07.953 103. i GENERAL_REQUEST_END BytesSent="6429", BytesReceived="329", HttpStatus="500", HttpSubStatus="0" 20:55:07.953
  • Re: Internal Server Error 500

    Jul 12, 2010 09:17 PM|don.raman|LINK

    jpickering2010

    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.

    Thanks,

    Don.

  • Re: Internal Server Error 500

    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?

    Thanks

    Jennifer

  • Re: Internal Server Error 500

    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.

    Thanks,

    Don.

  • Re: Internal Server Error 500

    Jan 05, 2011 06:17 PM|MySignInNameIsNotAnEmailAddress|LINK

    Does IIS7 not display php errors at all then? How are php developers supposed to debug their code?

    PHP IIS 7.0

  • Re: Internal Server Error 500

    Jan 05, 2011 06:32 PM|HCamper|LINK

    mysigninnameisnotanemailaddress

    Does IIS7 not display php errors at all then? How are php developers supposed to debug their code?

    Hello,

    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.

    Martin :)

    Windows and Linux work Together IT-Pros
    Community Member Award 2011