我一直在尝试从iis express运行一个简单的hello world php网站,关注这个问题https://stackoverflow.com/a/7086364/744610
但是我一直从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 :(得分:0)
为什么不简单地将Web Matrix与PHP结合使用。