Nitesh - You problem is with IIS configuration. I'm not sure why you would ever need to edit the registry directly, but I will defer that the to the greater experience of my counterparts. However I have not (yet) encountered the need to edit the registry, provided that I install IIS first, then intall Active Perl.
I'm attaching a screenshot of an existing IIS/Perl config on one of my servers. This screen is accessed through IIS, default web site's properties, Home Directory tab, click Configuration. Make sure the two perl entries are there. You'll notice that my config doesn't have PUT or GET listed as exclusions; this is an NT box. However on a W2K box I had to include those items. Your mileage may vary. These settings tell IIS to treat any *pl extensions as an executible, not a text file. The reason for your problem with the CGI error (below) is that IIS is looking in \wwwroot for your file, NOT \wwwroot\cgi-bin. This can probably be solved by creating an alias for your target directory, and then set your try.pl file as the default document on that alias' properties. Then when you connect to that url, IIS will automatically serve up your page. The final piece has to do with permissions. Your alias will probably require executible permissions for that directory. Also, here are a few links to websites which also address problems like those you're having (you're not alone!). I found them on Google using 'perl IIS' as my search parm. Best Regards, N. http://www.whitecrow.demon.co.uk/steve/iis4.html http://www.lyris.com/support/listmanager/software/faq/iis_perl_mappings.html -----Original Message----- From: Nitesh Gupta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:59 PM To: Jim Rickenbacker; [EMAIL PROTECTED] Subject: Re: RE: cgi + PWS config Hi, Thanks for your interest I tried using perlis.dll and perl.exe. The following error is shown in the browser. I have placed try.pl in "d:\Inetpub\wwwroot\cgi-bin\try.pl" and i open http://pc2/cgi-bin/try.pl ### CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't open perl script "d:\Inetpub\wwwroot\try.pl": No such file or directory ### how can i sort this out On Tue, 23 Apr 2002 Jim Rickenbacker wrote : >I always use perlis.dll for PWS. It uses less resources than >perl.exe. >If Active Perl is installed at C;\Perl then the string you want >is: >name = ".pl" >data = "c:\perl\bin\perlis.dll" >Using regedit.exe, browse to: >"HKEY_LOCAL_SYSTEM\System\CurrentControlSet\Services\W3SVC\Parameters\Sc >ript Map" >Select: EDIT, New, StringValue >Enter name = .pl. >Click .pl >Select: Edit, Modify >Enter data = c:\perl\bin\perlis.dll > >If needed, you can add similar entries for .plx and .cgi. The >data will >be the same. > >Hope this helps > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On >Behalf Of > > Nitesh Gupta > > Sent: Tuesday, April 23, 2002 6:57 AM > > To: [EMAIL PROTECTED] > > Subject: cgi + PWS config > > > > > > Hi, > > I am a Perl beginner. I wish to do cgi scripting on winNT >work > > station. I installed active perl and Personal Web server. >perl > > works on command line but not as script. In the >documentation, I > > read the following instructions(between ### signs below). >Can > > someone tell me what exactly should i write down in the key >(the > > exact string). > > > > ### > > Associate the extension for your scripts with the >appropriate > > interpreter in the script map for IIS. This is under the >Registry > > key HKEY_LOCAL_SYSTEM, with the sub-key > > ``''. > > Many people map two extensions: one to perl.exe %s (for >example, > > .pl) and another to PerlIS.dll (for example, .plx). Note >that > > mapping an extension in the script map is not the same as > > associating the extension in Explorer. Use the full paths to >the > > executable files in the script map. > > ### > > > > plz let me know what else should I do to make my script >working on > > PWS > > > > thanks > > Nitesh > > > > _________________________________________________________ > > Click below to visit monsterindia.com and review jobs in India >or > > Abroad > > http://monsterindia.rediff.com/jobs > > > > _______________________________________________ > > Perl-Win32-Web mailing list > > [EMAIL PROTECTED] > > To unsubscribe: >http://listserv.ActiveState.com/mailman/mysubs > > > >_______________________________________________ >Perl-Win32-Web mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _________________________________________________________ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ****************************************************************** This email and any files transmitted with it from the ElPaso Corporation are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. ******************************************************************
iis_config.gif
Description: GIF image