我正在尝试在本地处理一个使用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。控制台和网络选项卡已启用。Firefox重新启动
- 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
经过几个小时的修补,我发现有人写了一个.bat文件来为您完成所有php-is的工作。您已经需要安装PHP。这是链接,我希望这能为其他人省去我刚刚经历的几个小时的头痛。
使用批处理文件为IIS快速部署PHP
仅供参考:我仍然不完全知道我的配置出了什么问题。但如果它有效,它就有效。