The error:
FastCgiModule is not a recognized native module
occurs when FastCGI is not installed or configured correctly in IIS (Internet Information Services).
inetmgr, and press Enter.If it is not installed, install it and restart IIS.
If FastCGI is not installed, add it via PowerShell:
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CGI
iisreset
*.phpFastCgiModuleC:\php\php-cgi.exePHP via FastCGIRestart IIS:
iisreset
If FastCgiModule is still not recognized, manually add it in the IIS configuration.
Run:
cd %windir%\system32\inetsrv
appcmd add module /name:FastCgiModule /image:"C:\Windows\System32\inetsrv\iisfcgi.dll"
iisreset
| 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!
