For what it's worth, these comments from Bill Cole have saved me repeatedly over the years (since Oct 31, 2003), when dealing with Windows, IIS and CGI. Hope they help you too.
Doug Loud Oct 31, 2003 Comments Dave, I don't know if you are running it from the command line or in the browser. Here are a few things to check: *Make sure that IIS is running :Control Panel>Add/Remove programs>Add/Remove Windows Components>Indexing Service>Internet Information Services(IIS) options *Make sure that you have permissions to run scripts in the given folder:Right click folder>Properties>Web Sharing/Share this folder>check Read, Script Source Access and check Scripts application button. *File extension associations:C:>Tools>Folder Options>File Types>New>Type CGI>Advanced>Associate with Perl File>OK *Associate Perl extensions w/perl interpreter to run scripts in browser: Choose Administrative Tools from Control panel>Computer Management>Services and Applications>Internet Information Services>Expand Default Web Site folder>Right click cgi-bin, click Properties>Click Virtual Directory tab if necessary and click the Configuration ... button. Scroll until you see the .pl extension info, click the Edit button and swlect the Script Engine option. Also deselect the Check that file exists option, if necessary. Click OK. Click the Add button. In the Executable box, type C:\Perl\bin\perl.exe "%s" %s. In the extension box type.cgi. Select the Limit to button, then type GET, HEAD, POST. If necessary selectScript Engine option. Click OK.Click OK.Click OK. I know this is kind of lengthy, but it is a checklist I went through just a few days ago. Regards, Bill Cole -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bill Luebkert Sent: Wednesday, April 08, 2009 4:03 PM To: Lyle Cc: [email protected] Subject: Re: Perl6 though IIS7 CGI Brian Raven wrote: > Lyle <> wrote: >> Just tested on WinXP. Works on Apache, just hangs on IIS 5.1... :( >> >> >> Lyle wrote: >>> Bryan Keller wrote: >>> >>>> Let's put this issue to rest. As Bill Luebkert said in a previous >>>> response, "awful" was being used as an intensifier >>>> >>> Ok. Now that's sorted. Can we get back onto the subject matter? :) >>> http://forums.iis.net/p/1156635/1899524.aspx#1899524 > > I don't know IIS from a hole in the ground, so just to check. I > suspect that IIS might not honour the '#!' *nix magic as, I believe, > Apache does, so have you configured it to run the appropriate Perl executable? I don't think the shebang line is pertinent. You do have to associate .pl files with CGI somehow in IIS (never used it) I believe. I think IIS requires the status header ("HTTP/1.0 200 OK\n") prior to the content-type. Not sure if that's the issue though. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
