I am trying to run PHP via FastCGI on a Windows 2008 server.
I followed this installation doc http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applicati
You might be using C:/[your-php-directory]/php.exe in Handler mapping of IIS just change it C:/[your-php-directory]/php-cgi.exe.
I tried opening php-cgi.exe directly and it gave me a more clear error message.
In my case I had wrong constellation of configurations:
After enabling the error_reporting it was clear the session_path was pointed to a wrong folder.
"Sad but true"
After much pain and suffering, turns out I needed to install the "Visual C++ Redistributable for Visual Studio 2012 Update 4 32-bit version", even on my 64-bit server.
I was getting this same error installing PHP 7 on Windows Server 2008 R2. I resolved this by installing the Visual C++ Redistributable for Visual Studio 2015.
As the answer of 'sepehr' this issues are because of VC++ Redistributable suitable version for PHP are not installed or need to be reinstalled again.
I faced it before so i'll explain my steps to fix it.
1- Each PHP version is built by a specific Visual C++ Redistributable version like (10, 11,12,14,..) what ever. ((How you know!! look.. ))
Check back enter link description here The PHP Site then at the left side of this page, look at "Which version do I choose?" then see what version of VC++ is fits your PHP version installed.
Now YOU HAVE TO Download both of VC++ 32 and 64. and if your PC has it already then Unistall them first. and then install what you downloaded recently bu (first 32 then 64).
- VC download links are exists on the mentioned PHP Site on the left side also.
I hope it helps you.