PHP Manager for IIS 安装失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21216228/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PHP Manager for IIS fails to install
提问by Koen Hollander
I am trying to install PHP on IIS 8.
我正在尝试在 IIS 8 上安装 PHP。
Every time I start the PHP installation, PHP installs but I get the follow error:
每次我开始安装 PHP 时,都会安装 PHP,但出现以下错误:


回答by Frederik Struck-Sch?ning
As Abhi says: fire up regedit.exe and change the decimal value of Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\MajorVersionfrom 10 (as set by Windows 10) to e.g. 8. Installer should work now. Afterwards, you can set the value back to 10 (or whatever value your Windows env. had at first).
正如 Abhi 所说:启动 regedit.exe 并将十进制值Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\MajorVersion从 10(由 Windows 10 设置)更改为例如 8。安装程序现在应该可以工作了。之后,您可以将该值设置回 10(或您的 Windows 环境最初具有的任何值)。
Tip: For quick navigation, paste the path Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parametersinto the address-bar of Registry Editor and hit Enter.
提示:要快速导航,请将路径粘贴Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters到注册表编辑器的地址栏中,然后按 Enter。
Also, for me on Windows 10, I had to enable .NET Framework 3.5> Windows Communication Foundation HTTP Activationfor the installer to progress. Without this enabled, installer would just hang at step 1. Requires reboot.
另外,对于我在 Windows 10 上,我必须启用.NET Framework 3.5>Windows Communication Foundation HTTP Activation才能让安装程序继续进行。如果不启用此功能,安装程序将在第 1 步挂起。需要重新启动。
回答by Tony
Installation of PHP Manager for IIS via the Web Platform Installer requires .NET 3.5 to work properly. Install .NET 3.5 first, and you should be all set.
通过 Web 平台安装程序为 IIS 安装 PHP 管理器需要 .NET 3.5 才能正常工作。首先安装 .NET 3.5,你应该已经准备好了。
回答by Abhi
The setup program checks that the registry value HKLM/System/CCS/Services/W3SVC/Parameters/MajorVersion is >= 7. The value in the registry is 0xA, which I am assuming is the problem. For a workaround, change the registry value to 9 (or 8 or 7) and PHP Manager for IIS should install correctly. [insert standard disclaimer about editing the registry]
安装程序会检查注册表值 HKLM/System/CCS/Services/W3SVC/Parameters/MajorVersion 是否 >= 7。注册表中的值为 0xA,我假设这是问题所在。要解决此问题,请将注册表值更改为 9(或 8 或 7),这样 IIS 的 PHP 管理器就会正确安装。[插入关于编辑注册表的标准免责声明]
回答by ViRuSTriNiTy
Currently the installation also fails in case of using the Web Platform Installer because the Codeplex download link used by the Web Platform Installer does not exist anymore.
目前,如果使用 Web 平台安装程序,安装也会失败,因为 Web 平台安装程序使用的 Codeplex 下载链接不再存在。
Luckily some guys created GitHub repositories to update PHP Manager. These repositories provide new releases witch should work without the registry hack.
幸运的是,有些人创建了 GitHub 存储库来更新 PHP 管理器。这些存储库提供新版本女巫应该在没有注册表黑客的情况下工作。
The MSI installer can be downloaded here:
可以在此处下载 MSI 安装程序:
https://github.com/phpmanager/phpmanager/releases
https://github.com/phpmanager/phpmanager/releases

