Solved

CGI on IIS 5.0

Posted on 2002-07-27
7
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 

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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Script refinement question. 1 60
add if statement powershell 8 56
Help with Progress 4gl Rounding Function 6 59
Copy files and run psex to windows 7 only 14 46
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

732 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