1. 程式人生 > >php - WEB出現HTTP Error 500.0 - Internal Server Error

php - WEB出現HTTP Error 500.0 - Internal Server Error

問題: Server Error in Application "DEFAULT WEB SITE"

Internet Information Services 7.5

Error Summary

HTTP Error 500.0 - Internal Server Error

C:\PHP5624\php-cgi.exe - The FastCGI process exited unexpectedly

Detailed Error Information

Module

FastCgiModule

Notification

ExecuteRequestHandler

Handler

php-5.6.24

Error Code

0x00000000

Requested URL

http://localhost:80/xxxx/index.php

Physical Path

C:\inetpub\wwwroot\xxxx\index.php

Logon Method

Negotiate

Logon User

XXX

       

Most likely causes:

  • 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.
  • 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.
  • IIS was not able to process configuration for the Web site or application.
  • The authenticated user does not have permission to use this DLL.
  • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:

  • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
  • Check the event logs to see if any additional information was logged.
  • Verify the permissions for the DLL.
  • Install the .NET Extensibility feature if the request is mapped to a managed handler.
  • 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.

Links and More InformationThis 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

措施1 IIS 》Application Pools  》 Set Application Pool Defaults …  》 Process Model 》 Identity = LocalSystem   

結果: 依然同樣的問題.

 

 

措施 2.  開啟DOS視窗,到PHP的根目錄下,執行php -v,彈出錯誤,以及“Access is denied.”。

** PHP根目錄:

 

執行php -v,彈出錯誤,以及“Access is denied.”

 

措施3. 替換這個檔案C:\PHP5624\php.exe執行C:\PHP5624>php -v,結果空白

 windows event裡發現這個Oracle.OCI.DLL 錯誤,看樣子應該是缺少了這兩個動態連結庫OCI.DLL OraPlc11.Dll 

The description for Event ID 2 from source Oracle.OCI.DLL cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 If the event originated on another computer, the display information had to be saved with the event. 

The following information was included with the event: 

OraPlc11.Dll cannot be loaded.

OS Error message: The specified module could not be found.

 

措施4. 從裝有Oracle11資料庫的電腦裡,拷貝這兩個檔案OCI.DLL OraPlc11.Dll PHP的根目錄下,再次執行php -v,有正常結果!

-- DLL位置:

\Oracle\product\11.2.0\dbhome_1\BIN\OraPlc11.Dll

\Oracle\product\11.2.0\client_1\OCI.DLL

-- 拷貝這兩個檔案OCI.DLL ,OraPlc11.Dll 到PHP的根目錄下

 

5.再次執行php網頁,一切正常!