Solved

CGI on IIS 5.0

Posted on 2002-07-27
7
222 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
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

914 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now