0

我正在尝试在本地开发一个使用 PHP 的项目。我在带有 PHP 5.6.2 的 Windows 7 上使用 IIS 7.5。我试图设置 FirePHP,这样我就可以使用它将调试消息发送到 Firebug 控制台。

对于 PHP 部分,我遵循了本指南:

http://php.net/manual/en/install.windows.iis7.php

这是我检查过的一些事情:

  • 已安装 PHP。使用 PHP -i 从 cmd.exe 检查。
  • 安装了 FirePHP。控制台和网络选项卡已启用。火狐重新启动。
  • ASP.NET CGI 等已激活
  • 根据该指南仔细检查 php.ini 文件
  • IIS 中的处理程序映射
  • 检查 IIS 中的 MIME 类型

这是来自 IIS 的日志文件。什么都没有向我跳出来。在配置方面我错过了什么?(如果您觉得更方便,请使用相同的文本粘贴:在此处输入链接描述

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2014-11-11 19:12:39
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2014-11-11 19:12:39 ::1 GET / - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 83
2014-11-11 19:12:39 ::1 GET /css/styles.css - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 2
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/themes/base/minified/jquery-ui.min.css - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/jquery-1.9.1.min.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/ui/minified/jquery-ui.min.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /jquery.verticalPlugin.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 0
2014-11-11 19:12:39 ::1 GET /pointcloud.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /libs/mjs.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /libs/camera.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 0
2014-11-11 19:12:39 ::1 GET /libs/basicCTX.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 0
2014-11-11 19:12:39 ::1 GET /grid/grid.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /PCTree/PCTree.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 2
2014-11-11 19:12:39 ::1 GET /markers/markers.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /users/users.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 2
2014-11-11 19:12:39 ::1 GET /pcv.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /map/map.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /axes/axes.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 2
2014-11-11 19:12:39 ::1 GET /interactiveFunctions.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 1
2014-11-11 19:12:39 ::1 GET /libs/custom.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 304 0 0 0
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 0
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 0
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/themes/base/minified/images/ui-icons_222222_256x240.png - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 11
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 0
2014-11-11 19:12:39 ::1 GET /jquery-ui-1.10.3/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 1
2014-11-11 19:12:42 ::1 GET /action.php a=getnode&path=meta&table=kn_leaf_on 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/38.0.2125.111+Safari/537.36 200 0 0 2609
2014-11-11 19:14:26 ::1 GET / - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0 200 0 0 1
2014-11-11 19:14:26 ::1 GET /pointcloud.js - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0 304 0 0 1
2014-11-11 19:14:30 ::1 GET /action.php a=getnode&path=meta&table=kn_leaf_on 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0 200 0 0 2287
2014-11-11 19:14:30 ::1 GET /favicon.ico - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0 404 0 2 2
2014-11-11 19:14:30 ::1 GET /favicon.ico - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0 404 0 2 0
2014-11-11 19:15:27 ::1 GET /test.php - 8072 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0 500 0 0 2
#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2014-11-11 19:24:32
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2014-11-11 19:24:32 ::1 GET /test.php - 8072 - ::1 Mozilla/5.0+   (Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0+FirePHP/0.7.4 500 0 0 17
#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2014-11-11 19:49:45
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2014-11-11 19:49:45 ::1 GET /test.php - 8072 - ::1 Mozilla/5.0+   (Windows+NT+6.1;+WOW64;+rv:33.0)+Gecko/20100101+Firefox/33.0+FirePHP/0.7.4 500 0 0 106
4

1 回答 1

0

经过几个小时的修修补补,我发现有人编写了一个 .bat 文件来为您完成所有 php-iis 的工作。您已经需要安装 PHP。这是链接,我希望这可以节省其他人我刚刚经历的头痛时间。

使用批处理文件的 IIS 快速 PHP 部署

仅供参考:我仍然不完全知道我的配置出了什么问题。但如果它有效,它就会有效。

于 2014-11-12T04:12:01.980 回答