Windows 2012 R2 C:\Program Files (x86)\PHP\v5.6\php-cgi.exe – The FastCGI process exited unexpectedly PHP

The FastCGI process exited unexpectedly – Trying to run PHP on IIS 8.0

This problem has been talked about extensively around the forums, but no one is being clear on how to fix the problem. The issue first appeared after installing new Windows 2012 R2 Release.  after using  the Windows Web platform installer 5.0 to install  the framework PHP 5.6.0 and I might add when we tested on PHP 5.5 .11, a simple test page return the error: C:\Program Files (x86)\PHP\v5.6\php-cgi.exe – The FastCGI process exited unexpectedly

The Solution

You need to install the: Visual C++ Redistributable for Visual Studio 2012 Update 4  32-bit version.  and it should be noted that even if your operating system is a 64-bit operating system, you must install the 32-bit version  as PHP does not run in 64 bit.

 A download link is here: http://www.microsoft.com/en-us/download/details.aspx?id=30679

Select the download button

FastCGI Process exited unexpectedly

 

Select the 32 bit version or x86

Screenshot 2015 03 23 00 36 43

Screenshot 2015 03 23 00 37 01

 

You are done!

Screenshot 2015 03 23 00 37 10

Test your PHP and you should be good to go.

Tags:

79 thoughts on “Windows 2012 R2 C:\Program Files (x86)\PHP\v5.6\php-cgi.exe – The FastCGI process exited unexpectedly PHP”

  1. Chris Groothoff

    This is the correct solution for this issue. While there are many other options offered by others, this works and makes sense.

  2. Frustrating, I originally installed the 64 bit version because my OS was 64 bit, however going back and installing the 32 bit version solved the issue.

  3. Thank you for this. I had the same problem as others here and naturally selected the 64-bit version my first time around and it did not work. The 32-bit version solved the problem. I’m assuming because the Web PI installed the 32-bit version of PHP? Anyhow, THANKS!

  4. This is the correct solution for this issue. While there are many other options offered by others, this works and makes sense.

  5. Thank you so much!!! Spent so many days on it trying so many different options people recommended…this one worked like a charm!

  6. Ethan Ferdosi

    I have the same issue but my wordpress is running on Azure app service. I can;’t find any doco about how to install this extension. do you know how to do that?

  7. Hi,
    I’m trying to install PHP 7.0.9 on IIS 8.5 and this solution doesn’t work for me, still shows the following error :
    HTTP Error 500.0 – Internal Server Error
    C:\Program Files (x86)\iis express\PHP\v7.0\php-cgi.exe – The FastCGI process exited unexpectedly
    Detailed Error Information:
    Module FastCgiModule
    Notification ExecuteRequestHandler
    Handler PHP_via_FastCGI
    Error Code 0xc0000135
    Requested URL http://localhost:80/PhpTest/phpinfo.php
    Physical Path C:\inetpub\wwwroot\PHPTest\phpinfo.php
    Logon Method Anonymous
    Logon User Anonymous

  8. I found that it does not work with php 7.1.9 non threaded win 32 version, but when I downgraded to 5.6.31 it worked. 7.1.9 does not have a php_mysql.dll file as a part of the zip file downloaded off the php site.
    I see someone else had issues with 7.0.9 version. As I need this for WordPress installation only, no reason to not downgrade it to older version.
    Summary, seems to work with 5 version of php, but not 7 from what I can tell….

Leave a Reply

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