PHP Manager for IIS fails to install

旧街凉风 提交于 2019-11-28 16:35:49

问题


I am trying to install PHP on IIS 8.

Every time I start the PHP installation, PHP installs but I get the follow error:


回答1:


As Abhi says: fire up regedit.exe and change the decimal value of Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\MajorVersion from 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).

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.

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.




回答2:


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.




回答3:


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]




回答4:


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.

Luckily some guys created GitHub repositories to update PHP Manager. These repositories provide new releases witch should work without the registry hack.

The MSI installer can be downloaded here:

https://github.com/phpmanager/phpmanager/releases

https://github.com/RonaldCarter/PHPManager/releases



来源:https://stackoverflow.com/questions/21216228/php-manager-for-iis-fails-to-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!