Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sunday, April 23, 2017 3:09 PM
Hi,
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.
Sunday, April 23, 2017 9:00 PM
https://blog.lextudio.com/who-should-be-contacted-for-php-on-iis-issues-c80b90bd365
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.
Monday, April 24, 2017 7:23 AM
Hi SidC,
To promise a wordpress plugin could works fine in IIS, you may need to check whether fast-cgi has been configured correctly:
https://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/using-fastcgi-to-host-php-applications-on-iis
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.
Best Regards,
Yuk Ding
Friday, January 31, 2020 1:22 PM
Hi,
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.
I get:
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 Microsoft page:
ERROR_FILE_NOT_FOUND
2 (0x2)
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.
Cheers,
Mirnesa