59

I am trying to install PHP on IIS 8.

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

enter image description here

Lex Li
  • 60,503
  • 9
  • 116
  • 147
Koen Hollander
  • 1,687
  • 6
  • 27
  • 42
  • Did you have a look in the installer logs. Without knowing what's in there it's kinda hard to help you. – Kev Jan 20 '14 at 03:20
  • This is all very confusing. You asked this question in January 2014, and mention IIS 8. The current two top-voted answers, including the one you have accepted as the answer, are based on Windows 10, which was released a year and a half later. And someone has edited your tags to add Windows 10. I'm confused ... – RenniePet Apr 10 '17 at 00:31
  • @RenniePet maybe because this open source tool has been abandoned too long, so from IIS 8 to IIS 10 it is always problematic. I created a new repo to fully take over the project, and its 2.0 release is on the way https://github.com/phpmanager/phpmanager/releases/tag/v2.0-beta1 – Lex Li Aug 02 '18 at 16:25
  • Anyone else gets this `Signature verification failed on downloaded file.` – Pierre Feb 07 '20 at 09:17

4 Answers4

81

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.

Frederik Struck-Schøning
  • 12,981
  • 8
  • 59
  • 68
  • 1
    Worked for me! didn't have to enable .NET fw 3.5 ... thanks! – Neph Oct 05 '16 at 17:06
  • 1
    Just for reference, this is mentioned in this [MS Answers page](https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/php-manager-for-iis-on-windows-10/33ef32f0-6a86-4803-abc1-6de81110f9a8) which links to the issue on [PHP Manager's Codeplex](https://phpmanager.codeplex.com/workitem/2653) – drzaus Dec 13 '16 at 11:28
  • Thanks a lot Frederik – BitsAndBytes Aug 07 '17 at 12:37
  • It's almost 2018 and Microsoft has yet to fix. They must hate php on windows. – M H Sep 13 '17 at 17:10
  • This answer worked for me heres a video tut explaining the same thing. https://www.youtube.com/watch?v=PgniQdb2lWE – user2288580 Jan 02 '18 at 21:10
  • 1
    @MH PHP Manager for IIS is not a "Microsoft product", but a community open source project. – Lex Li Aug 02 '18 at 03:50
  • I created a new repo to fully take over the project, and its 2.0 release is on the way https://github.com/phpmanager/phpmanager/releases/tag/v2.0-beta1 – Lex Li Aug 02 '18 at 16:23
  • to complement the WCF http activation is under appwiz.cpl ((un)install programs) -> turn windows features on or off -> – Francisco Oct 19 '18 at 13:36
31

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.

Tony
  • 2,658
  • 2
  • 31
  • 46
27

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]

Abhi
  • 271
  • 3
  • 2
13

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

DreamTeK
  • 32,537
  • 27
  • 112
  • 171
ViRuSTriNiTy
  • 5,017
  • 2
  • 32
  • 58
  • 2
    There is a newer repo to fully take over the project, https://github.com/phpmanager/phpmanager/releases/tag/v2.0-beta1 – Lex Li Aug 02 '18 at 03:51