Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

CGI on IIS 5.0

Posted on 2002-07-27
7
Medium Priority
?
238 Views
Last Modified: 2013-12-25
Hi experts
I have downloaded perl 5 from http://www.activestate.com and went thru the whole process of setup (mapping of .cgi and .pl) the script hello world is working but when i tried a simple database search script as i click submit i get no results
I have also another problem most of the scripts asks for the unix base url what is it how could i configure it on my IIS 5.0
Regards
0
Comment
Question by:hobz
6 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 7183161
>>>>  I have also another problem most of the scripts asks for the unix base url what is it how could i configure it on my IIS 5.0

all scripts on *nix ask for a shebang line pointing to perl.exe, this line is NOT REQUIRED in IIS.




for cgi's to run through IIS, the server needs to be configured so that cgi/pl extensions parsed thru perl.exe.
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7184473
How do I configure Microsoft IIS 4.0/IIS 5.0 to support ActivePerl?
Microsoft IIS 4.0 ships with Windows NT Server 5.0, and PWS 4.0 ships with Windows NT Workstation 5.0. Both IIS and PWS are available as part of the Microsoft Windows NT 4.0 Option Pack. You can find a link to the Option Pack at http://www.microsoft.com/iis/

Microsoft IIS 5.0 is not automatically installed on all Windows 2000 systems. Check your Windows 2000 documentaion on how to install IIS 5.0.

To configure IIS or PWS 4.0 to run Perl scripts:

Open the Internet Service Manager. This will bring up the Microsoft Management Console with the Internet Service Manager snap-in already selected.

From the tree display on the left, select the level at which to apply the mappings. You can choose an entire server, web site, or a given virtual directory.

Select Properties from the Action menu.

If you chose to administer the properties for the entire server, the Server Properties dialog will appear. Select WWW Service from the Master Properties pull-down menu and click the Edit button under Master Properties. This opens WWW Service Master Properties. Select the Home Directory tab and proceed to step 7.

If you chose to administer the properties for an entire web site, the Web Site Properties sheet appears. Select the Home Directory tab and proceed to step 7.

If you chose to administer the properties for a virtual directory, the Virtual Directory Properties sheet appears. Select the Virtual Directory tab and proceed to step 7.

Click the Configuration button. This opens the Application Configuration dialog.

Select the App Mappings tab and click the Add button. You see the Add/Edit Application Extension Mapping dialog.

To run Perl as a CGI application, type the full path to Perl.EXE followed by %s %s. When a script is executed, the first %s will be replaced by the full path to the script, and the second %s will be replaced by the script parameters.

To run Perl for ISAPI, type the full path to PerlIS.DLL. The %s %s is not required for ISAPI DLLs.

In the Extension field, type .pl or .plx (or whatever extension you want to use).

The application mapping is now complete. Click the OK button and click OK to dismiss any remaining dialogs/property sheets.

Close the IIS Internet Service Manager.

Because IIS runs as a service, you need to take special steps to make sure that files and environment variables are available to it.





_________________________________
taken from the documentation
0
 
LVL 5

Expert Comment

by:amandeep
ID: 7205094
hobz,

--  when i tried a simple database search script as i click submit i get no results.....
  What error do you see here? Can you post ur script here? What database are you using? You may not be having database interface modules.


-- I have also another problem most of the scripts asks for the unix base url what is it how could i configure it on my IIS 5.0....
  What do you mean by Unix base url? Please clearify.

Aman
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 

Author Comment

by:hobz
ID: 7210075
Guys
I have solved the problem
the base url can be replaced by the phisical location of the script for instance d:\inetpub\cgi-bin\......etc
the base url is a unix term but i am using IIS5.0
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7210703
great!

if you think none of us have helped you, then you can request this Q to be 0-point PAQ by asking here, http://www.experts-exchange.com/commspt/ .
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11863114
PAQed, with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question