問題: 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.
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網頁,一切正常!