Solved

CGI on IIS 5.0

Posted on 2002-07-27
7
220 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to dynamically set the form action using jQuery.

758 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

18 Experts available now in Live!

Get 1:1 Help Now