Why can't I enable FastCGI in IIS under Windows 11?

Stephen P 101 Reputation points
2022-08-25T09:49:34.25+00:00

am running Windows 11 Pro version 22H2, build 22622.290 with Windows Feature Experience Pack 1000.22632.1000.0. I have already reset Windows once because IIS failed to install properly. It now installs, but CGI/FastCGI doesn't so I can't manage/run PHP. I've configured Windows Features to include CGI. I posted this in Answers but was directed here.
234814-image.png
Here is what IIS manager looks like:

234844-image.png

Notice no CGI icon visible in IIS Manager. PHP Manager gives:
234845-image.png

I fear I shall have to do another Windows reset and set up IIS before doing anything else in case another application is causing the issue.

Windows development | Internet Information Services
Windows for business | Windows Client for IT Pros | User experience | Other
{count} vote

Accepted answer
  1. Limitless Technology 39,926 Reputation points
    2022-08-26T09:01:25.677+00:00

    Hello StephenP,

    Glad to hear it was fixed with DISM. For the record in case other users can't install even after DISM:

    Then, to try install with Powershell and using elevated rights using this simple script:

    $features = @(  
       "Web-WebServer",  
       "Web-Static-Content",  
       "Web-Http-Errors",  
       "Web-Http-Redirect",  
       "Web-Stat-Compression",  
       "Web-Filtering",  
       "Web-Asp-Net45",  
       "Web-Net-Ext45",  
       "Web-ISAPI-Ext",  
       "Web-ISAPI-Filter",  
       "Web-Mgmt-Console",  
       "Web-Mgmt-Tools",  
       "NET-Framework-45-ASPNET",  
       "Web-Mgmt-Service",  
       "Web-Windows-Auth",  
       "Web-CGI",  
       "Web-Dyn-Compression",  
       "Web-Scripting-Tools",  
       "Web-Dyn-Compression"  
    )  
    

    Add Windows Features

    add-WindowsFeature $features -Verbose  
    

    --If the reply is helpful, please Upvote and Accept as answer--


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.