Install PHP Manager for IIS Windows Server 2012 r2

Install PHP Manager for IIS Windows Server 2012 r2

If you're using PHP on Windows with IIS you most certainly know the PHP Manager for IIS tool, an excellent GUI that integrates within the IIS Manager interface as a snap-in that you can use to flawlessly manage your PHP installation(s) on your IIS server machine. Installing it is just as simple as launching the Web Platform Installer  (through the IIS Manager interface itself), then select it and add to your environment.

This is your preferred choice not only because of simplicity, yet also because that way you will get the last build of the software (1.4 at the time of speaking), which addresses a specific issue that affected the previous releases (=< 1.3) on most Windows 10 machines. The problem is well-documented here: to quickly summarize it, the PHP Manager setup program checks that the registry value HKLM/System/CCS/Services/W3SVC/Parameters/MajorVersion  is >= 7 to ensure that it's being installed on IIS7 and later: however, when you're running Windows 10 with the last IIS version, the registry value is 0xA, which (oddly) evaluates that condition to false, thus making the installer crash.

Here's an example of the error log:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

INFO:[04/02/2015 11:55:27:992][VsdLaunchConditions ]:Gettingtheconditiontoevaluate...

INFO:[04/02/2015 11:55:27:992] [VsdLaunchConditions ]:MsiRecordGetStringW-Fetchingvalue...

INFO:[04/02/2015 11:55:27:993][VsdLaunchConditions ]:MsiRecordGetStringW- Gettingvaluefromcolumn'1'...

INFO:[04/02/2015 11:55:27:993][VsdLaunchConditions ]:Evaluatingcondition'IISREGISTRYVALUE >= "#7"'...

INFO:[04/02/2015 11:55:27:994][VsdLaunchConditions ]:RESULT:Conditionisfalse.

INFO:[04/02/2015 11:55:27:994] [VsdLaunchConditions ]:MsiRecordGetStringW-Fetchingvalue...

INFO:[04/02/2015 11:55:27:994][VsdLaunchConditions ]:MsiRecordGetStringW- Gettingvaluefromcolumn'2'...

INFO:[04/02/2015 11:55:27:995][VsdLaunchConditions ]:MsiSetPropertyW-SettingProperty Value...

MSI(s)(3C!04)[11:55:27:996]:PROPERTYCHANGE:AddingHideFatalErrorFormproperty. Itsvalueis'TRUE'.

INFO:[04/02/2015 11:55:27:996][VsdLaunchConditions ]:MsiSetPropertyW-Settingproperty'HideFatalErrorForm' to'TRUE'.

INFO:[04/02/2015 11:55:27:996][VsdLaunchConditions ]:Checkingalaunchcondition...

INFO:[04/02/2015 11:55:27:997][VsdLaunchConditions ]:Alaunchconditionhasalreadyfired.Myworkisdonehere.

ERROR :[04/02/2015 11:55:27:997][VsdLaunchConditions ]:CustomActionfailedwithcode:'1603'

INFO:[04/02/2015 11:55:27:998][VsdLaunchConditions ]:CustomActioncompletedwithreturncode:'1603'

CustomActionVSDCA_VsdLaunchConditionsreturnedactualerrorcode 1603(notethismaynotbe100%accurateiftranslationhappenedinsidesandbox)

Action ended11:55:28:VSDCA_VsdLaunchConditions.Returnvalue3.

Actionended11:55:28:INSTALL. Returnvalue3.

The workaround there was pretty simple: change that value to 9 (or 8, or 7), let the software install, then bring it back to the previous value. Luckily enough, as said above, the PHP Manager staff released the 1.4 build which had this problem fixed for good. However, if you're installing it manually and using a previous version, you would still be hit by that issue. Since there's an official build that now addresses it our suggestion is to get it, thus avoiding the above workaround: however, in case you need the good old fix, here it is for your convenience.

Where is PHP manager in IIS?

Open the Internet Information Service (IIS) Manager - right click on This computer and select Manage. Click on PHP Manager icon. Register new PHP version - select C:\PHP\php-cgi.exe.

How enable PHP in IIS?

Open IIS Manager, select the hostname of your computer in the Connections panel, and then double-click Handler Mappings. In the Action panel, click Add Module Mapping. In Request path, type *. php.

Can PHP run on Microsoft Windows IIS?

The fastest and easiest way to install PHP on Internet Information Services (IIS) is by using the Microsoft® Web Platform Installer (Web PI). Web PI completely automates setting up IIS, FastCGI, and the latest version of PHP from the php.net Web site.