« Previous Next »

Thread: The FastCGI executable could not be found

Last post 10-29-2009 5:34 PM by vLGrok. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-29-2009, 5:17 PM

    • vLGrok
    • Not Ranked
    • Joined on 10-29-2009, 5:06 PM
    • Posts 2

    The FastCGI executable could not be found

    What are the steps to troubleshoot this error?

    I have installed PHP and FastCGI both from the IIS.NET installer.

    See the tests I have run below the error description .. which is:

    FastCGI Error
    The FastCGI Handler was unable to process the request.
    --------------------------------------------------------------------------------
    Error Details:
    •The FastCGI executable could not be found
    •Error Number: 3 (0x80070003).
    •Error Description: The system cannot find the path specified.
    HTTP Error 500 - Server Error.
    Internet Information Services (IIS)
    --------------------------------------------------------------------------------

    Test 1:
    cscript.exe C:\inetpub\AdminScripts\adsutil.vbs GET w3svc/DefaultDoc
    Output of Test 1:
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

    DefaultDoc                      : (STRING) "Default.htm,Default.asp,index.htm,index.html,index.php"

    Test 2:
    cscript.exe C:\inetpub\AdminScripts\adsutil.vbs GET w3svc/ScriptMaps | findstr php
    Output of Test 2:   (there was no output .. as in the following ..)
    -----------
    C:\TEMP>cscript.exe C:\inetpub\AdminScripts\adsutil.vbs GET w3svc/ScriptMaps | f
    indstr php

    C:\TEMP>
    ----------

    Test 3:
    "C:\Program Files\PHP\php-cgi.exe" E:\Sites\guildinfo\phpinfo.php > step3.htm
    Output of Test 3:
    http://www.guildinfo.net/step3.htm

    But I am still unable to run .php files, as in :
    http://www.guildinfo.net/phpinfo.php

  • 10-29-2009, 5:28 PM In reply to

    Re: The FastCGI executable could not be found

    Hi,

    Seems like you do not have FastCGI installed. Please uninstall PHP completely and follow my blog at http://blogs.iis.net/donraman/archive/2009/10/07/installing-php-on-windows.aspx.

    Thanks,

    Don.

  • 10-29-2009, 5:34 PM In reply to

    • vLGrok
    • Not Ranked
    • Joined on 10-29-2009, 5:06 PM
    • Posts 2

    Re: The FastCGI executable could not be found

    Thanks for your quick reply.

    FastCGI is most certainly installed, through the installer from:
    http://www.iis.net/extensions/FastCGI
    As well, I uninstalled and reinstalled to verify.

    I found the real problem though.  There is a file named "fcgiext.ini" in the same directory as "fcgiext.dll" (currently "%windows%\system32\inetsrv").  The file had the wrong value for:

    ExePath=C:\Program Files\PHP\php-cgi.exe

    Once I corrected that and restarted IIS, it worked.

Page 1 of 1 (3 items)
Microsoft Communities