The FastCGI Process Exited UnexpectedlyRSS

3 replies

Last post Jan 31, 2020 01:22 PM by mirnesa

‹ Previous Thread|Next Thread ›
  • The FastCGI Process Exited Unexpectedly

    Apr 23, 2017 03:09 PM|SidC|LINK

    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.

    Sid Childers
    sid@webdbapps.net
  • Re: The FastCGI Process Exited Unexpectedly

    Apr 23, 2017 09:00 PM|lextm|LINK

    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.

    Lex Li
    https://lextudio.com
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: The FastCGI Process Exited Unexpectedly

    Apr 24, 2017 07:23 AM|Yuk Ding|LINK

    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:

    https://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/install-wordpress-on-iis

    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

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.
  • Re: The FastCGI Process Exited Unexpectedly

    Jan 31, 2020 01:22 PM|mirnesa|LINK

    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

‹ Previous Thread|Next Thread ›