Click here to Skip to main content
15,879,535 members
Articles / All Topics

How to Solve The FastCGI Process Exited Unexpectedly Error

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
16 Feb 2015CPOL1 min read 30K   1  
How to solve The FastCGI process exited unexpectedly Error

Background

IIS with PHP is not new nowadays, there are a lot of business needs that require PHP applications that need to host in IIS. In recent times, PHP improved a lots in terms of integrating to IIS. Still few times few things fall apart, like the problem we are going to illustrate.

Problem

For a recent project, I had to configure PHP with IIS 7.0 on Windows 2008 R2. Everything seemed fine, I even added the application pool with “No Managed Code”, configured handler mapping and sat tight to see PHP running,.

As soon as I hit http://localhost/phpinfo.php and boom, I saw this error message.

error

Solution

After lots of Googling, I found the solution at last, the solution was super easy, you have to install Visual C++ Redistributable for Visual Studio from here. Though it was specifically mentioned in the PHP download section, I somehow skipped that and wasted hours to find a solution.

Problem was PHP as FastCGI with IIS requires you to install the Non-Thread Safe (NTS) versions of PHP. And Recent releases binaries built with Visual Studio 2012 compiler. So while executing, you need to have Visual C++ Redistributable for Visual Studio 2012 install in your server where you are trying to execute PHP scripts. And for proper installation, follow these steps. In addition to these instructions, you have to add an application pool with “No Managed Code” and Managed Pipeline Mode set to “Classic”. Then Go to “Advance Settings” of newly created application pool and Enable 32bit Application value to “True”.

Image 2 Image 3

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
Bangladesh Bangladesh
I am a Software Engineer and Microsoft .NET technology enthusiast. Professionally I worked on several business domains and on diverse platforms. I love to learn and share new .net technology and my experience I gather in my engineering career. You can find me from here

Personal Site
Personal Blog
FB MS enthusiasts group
About Me

Comments and Discussions

 
-- There are no messages in this forum --