homepage Welcome to WebmasterWorld Guest from 23.22.194.120
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
IE not able to find my cgi script
barun agarwal




msg:3931246
 2:28 pm on Jun 11, 2009 (gmt 0)

Hi All,

I am trying to configure IIS6.0 on Windows 2003 with ActivePerl 5.10. After following all the steps as mentioned in the below given link, my IE is still not able to locate my cgi script.
Link referred to configure IIS for cgi:
http://www.example.com/directory/perl/perl_iis.html
and
Perl Faq file under which comes with perl installation. The steps followed were:
To configure ActivePerl to work with IIS 6 on Windows 2003:
1.Load the Internet Information Services (IIS) Manager applet from Window's Administrative Tools menu.
2.Select the desired system, then select Web Service Extensions. Click Add New Web Service Extension.
3.Enter a descriptive Extension Name (such as "Perl CGI"), then enter the following string in the Required Files field:
C:\Perl\bin\perl.exe "%s" %s
As necessary, modify the path to the Perl executable on the selected system. Check Set Extension Status to Allowed, then click OK.
4.Expand the Web Sites directory in the IIS Manager and right-click Default Web Site. Select New Virtual Directory.... Use the wizard to specify the location of your Perl CGI programs. On the Access Permissions page, ensure that Read, Run Scripts and Execute are enabled.
5.Right-click the new virtual directory and select Properties. On the Mappings tab of the Application Configuration page, ensure that the .pl or .cgi extension is mapped to the Perl interpreter specified above. (Enter the same string in the Executable Path field as shown in step 3.)
6.In order to run ASP scripts, ensure that Active Server Pages are "allowed". Under the Web Service Extensions directory, select Active Server Pages. Change the status from "Prohibited" to "Allowed".
7.Restart the IIS service.

After doing all the above, when I enter http://localhost/cgi-bin/hello.pl, I get this error.

HTTP Status 404 - /cgi-bin/hello.pl
--------------------------------------------------------------------------------
type Status report
message /cgi-bin/hello.pl
description The requested resource (/cgi-bin/hello.pl) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17

I need to setup this webserver desparately. I am game for other methods or other webserver like Apache.

Appreciate it.

thanks

[edited by: phranque at 7:21 pm (utc) on June 11, 2009]
[edit reason] No urls, please. See TOS [webmasterworld.com] [/edit]

 

krugs




msg:3931473
 5:49 pm on Jun 11, 2009 (gmt 0)

Uhh... I think you need to find an Apache Tomcat tutorial since it appears you are using that to run your CGI script from localhost. See the last line of the error message above?

Apache Tomcat/5.5.17

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved