3

我一直在尝试从 iis express 运行一个简单的 hello world php 站点,遵循这个问题https://stackoverflow.com/a/7086364/744610

但我不断从 iis 收到错误 500,并且在 cmd 中我可以看到有关收藏图标的 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

我仔细检查了物理路径确实是正确的。

命令:

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>
4

1 回答 1

0

为什么不简单地将 Web Matrix 与 PHP 一起使用。

于 2013-04-10T16:49:37.283 回答