Catalyst-Manual
view release on metacpan or search on metacpan
lib/Catalyst/Manual/Deployment/IIS/FastCGI.pod view on Meta::CPAN
[Types]
*:8=CatalystApp
;replace 8 with the identification number of the newly created website
;it is not so easy to get this number:
; - you can use utility "c:\inetpub\adminscripts\adsutil.vbs"
; to list websites: "cscript adsutil.vbs ENUM /P /W3SVC"
; to get site name: "cscript adsutil.vbs GET /W3SVC/<number>/ServerComment"
; to get all details: "cscript adsutil.vbs GET /W3SVC/<number>"
; - or look where are the logs located:
; c:\WINDOWS\SYSTEM32\Logfiles\W3SVC7\whatever.log
; means that the corresponding number is "7"
;if you are running just one website using FastCGI you can use '*=CatalystApp'
[CatalystApp]
ExePath=d:\strawberry\perl\bin\perl.exe
Arguments="d:\WWW\WebApp\script\webapp_fastcgi.pl -e"
;by setting this you can instruct IIS to serve Catalyst static files
;directly not via FastCGI (in case of any problems try 1)
IgnoreExistingFiles=0
;do not be fooled by Microsoft doc talking about "IgnoreExistingDirectories"
;that does not work and use "IgnoreDirectories" instead
IgnoreDirectories=1
=back
=head2 Setup IIS 7.0 (Windows 2008 and Vista)
Microsoft IIS 7.0 has built-in support for FastCGI so you do not have to
install any addons.
=over
=item Necessary steps during IIS7 installation
During IIS7 installation, after you have added role "Web Server (IIS)"
you need to check to install the role feature "CGI" (do not be nervous
that it is not FastCGI). If you already have IIS7 installed you can add
the "CGI" role feature through "Control panel" > "Programs and
Features".
=item Create a new website
Open "Control Panel" > "Administrative Tools" > "Internet Information Services
Manager" > "Add Web Site".
site name: "CatalystSite"
content directory: "d:\WWW\WebApp\root"
binding: set proper IP address, port etc.
=item Configure FastCGI
You can configure FastCGI extension using commandline utility
"c:\windows\system32\inetsrv\appcmd.exe"
=over
=item Configuring section "fastCgi" (it is a global setting)
appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='d:\strawberry\perl\bin\perl.exe',arguments='d:\www\WebApp\script\webapp_fastcgi.pl -e',maxInstances='4',idleTimeout='300',activityTimeout='30',requestTimeout='90',instanceMaxRequ...
=item Configuring proper handler (it is a site related setting)
appcmd.exe set config "CatalystSite" -section:system.webServer/handlers /+"[name='CatalystFastCGI',path='*',verb='GET,HEAD,POST',modules='FastCgiModule',scriptProcessor='d:\strawberry\perl\bin\perl.exe|d:\www\WebApp\script\webapp_fastcgi.pl -e',res...
Note: before launching the commands above, do not forget to change the
site name and paths to values relevant for your server setup.
=back
=back
=head3 Setup of your application
Note that you B<MUST> have the config setting C<use_request_uri_for_path> set to true
to work in IIS7 - if you do not have this then all sub paths in your application
(e.g. /foo/bar) will resolve to the root path, i.e. /
=head1 AUTHORS
Catalyst Contributors, see Catalyst.pm
=head1 COPYRIGHT
This library is free software. You can redistribute it and/or modify it under
the same terms as Perl itself.
=cut
( run in 2.691 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )