Faced hard time today to figure out the issue of  ‘The FastCGI process exited unexpectedly’ error while installing php5.5 on windows 2012 R2

Let me explain the steps followed

I assume you have already enabled Fast CGi during role setup for webserver

Download latest version of PHP (as today it is PHP 5.5 (5.5.5)), VC11 x64 Non Thread SafeExtract to C:/php5/
Copy  php.ini-production as php.ini and edit following parameters
open_basedir = {YOUR IIS WEBSITES PATH HERE}
cgi.fix_pathinfo=1
fastcgi.impersonate=1
date.timezone = "Asia/Bahrain" (please change based on your time zone)
extension_dir = "c:\php5\ext"

set up required extensions you wish to enable and configure

Next Open up the Internet Information Services (IIS) Manager.

Select the "Handler Mappings" for your server
Then click the "Add Module Mapping..." found in the top right corner of the Handler Mappings screen.
Then fill in the following information and click OK:
Request path: *.php
Module: Select FastCgiModule
Executable (optional): c:\php5\php-cgi.exe
Name: PHP_via_FastCGI

Your are done.

Now if you create a page test.php with below code, it must work
<?php phpinfo() ?>

Now if you still get error, try the following:-

  1. Download and install the following update as the PHP 5.5  binaries need the latest version
    http://www.microsoft.com/en-us/download/details.aspx?id=30679

  2. Rightclick on PHP5 folder and under security add IIS User and USERS ( Read and Execute permission)
Installing php 5.5 on Windows 2012 R2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.