Solved

CGI on IIS 5.0

Posted on 2002-07-27
7
228 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

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

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

691 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