2013-04-05 104 views
3

我一直在試圖運行一個簡單的Hello World PHP網站從IIS表達,關注此問題https://stackoverflow.com/a/7086364/744610運行PHP網站在IIS上表達

,但我一直從IIS收到錯誤500,並在CMD我可以看到關於fav圖標的404錯誤。

從500錯誤

Detailed Error Information: 
Module  FastCgiModule 
Notification  ExecuteRequestHandler 
Handler PHP-FastCGI 
Error Code  0x80070002 
Requested URL  http://localhost:32701/index.php 
Physical Path  c:\myphpsite\index.php 
Logon Method  Anonymous 
Logon User  Anonymous 
Request Tracing Directory  C:\Users\user\Documents\IISExpress\TraceLogFiles\PHPTEST 

我在物理路徑仔細檢查了詳細的諮詢無論是確實是正確的。

在CMD:

Request started: "GET" http://localhost:32701/index.php 
Request ended: http://localhost:32701/index.php with HTTP status 500.0 
Request started: "GET" http://localhost:32701/favicon.ico 
Request ended: http://localhost:32701/favicon.ico with HTTP status 404.0 
Request started: "GET" http://localhost:32701/index.php 
Request ended: http://localhost:32701/index.php with HTTP status 500.0 
Request started: "GET" http://localhost:32701/favicon.ico 
Request ended: http://localhost:32701/favicon.ico with HTTP status 404.0 

我試圖f5'ing幾次,因此重複。

我的index.php

<html> 
<body> 
<?php 
echo "Hello world"; 
?> 
</body> 
</html> 

回答

0

你爲什麼不乾脆用Web Matrix的用PHP。