Then click Next and Continue to install the CGI module, it is at this point that I would recommend you restart your server (or IIS at the minimum!) Once the Server Manager tool opens, you should see a Add Roles link, click that and now ensure that “CGI” is ticked as per the below screenshot: Using explorer, open up the Administrative Tools section in the Control Panel of which can be found at this location: Control Panel\All Control Panel Items\Administrative Tools We now need to install the CGI module to enable IIS to “talk” to PHP.
Install the runtime as described above, it is now recommended that you reboot your server for that changes to take full affect! Installing the CGI Module for IIS You can download the latest VC C++ 2015 runtimes from the Microsoft website here: PHP7 (at the time of writing at-least) has been compiled in Visual Studio 2015 and thus needs the VC 2015 runtime installed on the server, again, it is important that you install the version that matches your servers hardware architecture (x32 or 圆4) alternatively install both and you cannot therefore go wrong! Download and install the Visual C++ 2015 runtime Once downloaded, extract all the files to C:\PHP, this directory will be used to store our PHP binaries and configuration files. You must pay special attention to the version that you download, given that my server(s) run the 64-bit version of Windows, I will naturally choose to download and go for the 圆4 NTS (none-thread safe) version of PHP. You can download the latest PHP binaries from the PHP website found here. Download and install the VC14 (Visual C++ 2015) runtime.To get PHP7 installed on our server will will break down the installation into a number of separate, logical step these are as follows:. At the time of writing PHP 7.0.6 is the latest stable release and given that we are going to be using Microsoft’s IIS as the web server on Windows Server 2012 R2 (圆4) we will need to download the latest version of PHP 7.0.x ensuring that we download the NTS (Non-thread safe) version and the 圆4 build.