IIS 7 and Above
The FastCGI Process Exited Unexpectedly
Last post Jan 31, 2020 01:22 PM by mirnesa
Apr 23, 2017 03:09 PM|SidC|LINK
I have a Windows Server 2016 running under Azure and have installed PHP 7.1 in c:\php with php.ini running therein. I created a PHP_FastCGI Handler mapping to c:\php\php-cgi.exe and am now at the point where I need to activate a custom plugin within Wordpress.
I ensure that IIS_USRS and Network Service have full control to c:\inetpub\wwwroot\wordpress. My default document type is .php in IIS as well.
Upon activation of the Wordpress custom plugin, I received the error The FastCGI Process Exited Unexpectedly.
What additional steps must be taken to ensure an error-free configuration? Thanks for your help and guidance.
Apr 23, 2017 09:00 PM|lextm|LINK
You have to contact the PHP community and see if there is a way to resolve the crash. PHP-cgi.exe is not part of IIS and is not usually covered by Microsoft support.
Apr 24, 2017 07:23 AM|Yuk Ding|LINK
To promise a wordpress plugin could works fine in IIS, you may need to check whether fast-cgi has been configured correctly:
Wordpress also have a dependency on MySQL, so please check whether you have configured the wordpress following this link:
If the steps above doesn't work, please check whether something wrong in php.ini extension list.
You could try to install
https://www.interactivewebs.com/blog/index.php/general-tips/windows-2012-r2-cprogram-files-x86phpv5-6php-cgi-exe-the-fastcgi-process-exited-unexpectedly-php/, the x86- vc++ distribution could also cause this issue.
Jan 31, 2020 01:22 PM|mirnesa|LINK
I have the same error but using Python/Flask in IIS.
I have successfully set up the Flask app in IIS with FastCGI module (wfastcgi 3.0.0) on my Windows 10, but when I tried migrate to Windows Server 2016, with the same configuration, same files, same permissions, I can't get it to work.
Error 500.0 - Internal Server Error The FastCGI process exited unexpectedly
In IIS log file I see additional sc-win32-status code 2 which I fond on
sc-win32-status code 2
The system cannot find the file specified.
but don't know which file it is. I thought it can't recognize wfastcgi python package because of the Python version, so I tried different Python versions, but still couldn't get it working.