Fixing "FastCgiModule is Not a Recognized Native Module" in IIS
23.04.2025
Verify That FastCGI is Installed
- Press Win + R, type
inetmgr, and press Enter. - Click on "Server Manager" > "Manage" > "Add Roles and Features".
- Scroll to "Web Server (IIS)" and click "Role Services".
- Ensure "CGI" is checked under "Application Development".
If it is not installed, install it and restart IIS.
For closely related PHP runtime / web server topics, see Fix "PHP Version Does Not Meet Bitrix Requirements" and Fixing ERR_INVALID_RESPONSE in PHP.
Install FastCGI via PowerShell (If Missing)
If FastCGI is not installed, add it via PowerShell:
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CGI
Restart IIS
iisreset
Verify FastCGI is Enabled in IIS
- Open IIS Manager.
- Click "Handler Mappings" (at the server level).
- Ensure "FastCgiModule" is listed.
- If missing, click "Add Module Mapping" and configure:
- Request Path:
*.php - Module:
FastCgiModule - Executable:
C:\php\php-cgi.exe - Name:
PHP via FastCGI - Click OK > Yes to confirm.
- Request Path:
Restart IIS:
iisreset
Register FastCGI in IIS Manually
If FastCgiModule is still not recognized, manually add it in the IIS configuration.
Open Command Prompt (Admin)
Run:
cd %windir%\system32\inetsrv
appcmd add module /name:FastCgiModule /image:"C:\Windows\System32\inetsrv\iisfcgi.dll"
Restart IIS
iisreset
Summary of Fixes
| Issue | Fix |
|---|---|
| FastCGI not installed | Install via Server Manager or PowerShell |
| FastCGI module missing in IIS | Add manually in Handler Mappings |
| Module not registered | Run appcmd add module |
| IIS not updated after changes | Run iisreset |
Now FastCgiModule should work in IIS!


