Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

IIS and FastCGI/Registering interpreter

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

This page is largely a wiki-mirror of the official Microsoft docs.official Configuring FCGI.ini To register an extension globally: ## php cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:\PHP\php-cgi.exe" ## perl cscript fcgiconfig.js -add -section:"Perl" -extension:pl -path:"C:\strawberry\perl\bin\perl.exe" To register a site-specific extension simply add the -site=<sitenum> flag. (No angle brackets) cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:\PHP\php-cgi.exe" –site:1 On success you should see: Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. INI successfully written. Finishing fcgiext.ini Documented is located by default in: C:\WINDOWS\system32\inetsrv\fcgiext.ini The FastCGI document is formatted with a Types section that maps the FastCGI application onto the IIS site (vhost) using the specific IIS ids. And, a section that describes the application: [Types] ;619896678 is my example IIS site id *:619896678=Catalyst [Catalyst] ExePath=C:\strawberry\perl\bin\perl.exe Arguments="D:\Inetpub\www\DMApp\script\dmapp_fastcgi.pl" Registering FCGI with IIS To add the FastCGI to a site follow these steps: Start → Administrative Tools → Internet Information Services (IIS) Manager → Right Mouse click on Web Sites folder Properties → Home Directory → Configuration → Select extension you installed → Edit → you should see C:\WINDOWS\system32\inetsrv\fcgiext.dll or the like in the executable field. Uncheck verify file exists. Troubleshooting ScriptMap already exists Example: C:\WINDOWS\system32\inetsrv\fcgiconfig.js(1223, 5) (null): ScriptMap already exi sts, path=IIS://localhost/W3SVC, scriptmap=.pl,C:\Perl\bin\perl.exe "%s" %s,5,GE T,HEAD,POST Cause: Often old Active State CGI garbage Solution: Start → Administrative Tools → Internet Information Services (IIS) Manager → Right Mouse click on Web Sites folder Properties → Home Directory → Configuration → Delete all conflicting extensions i.e. .pl, .plex, .plx, .php, .rb etc. → OK / Confirm Footnotes officialInformation based on examples graciously provided by Microsoft: http://www.iis.net/articles/view.aspx/IIS7/Hosting-Web-Applications/PHP/Using-FastCGI-to-Host-PHP-Applications-on-IIS-6-0-?Page=2 Using FastCGI to Host PHP Applications on IIS 6.0 and IIS 5.1 2008-02-05 2007-09-24 Microsoft IIS And FastCG