my perl cgi just do not work in IIS pls pls help me

Posted on 2000-03-22
Medium Priority
Last Modified: 2013-12-25
Can you describe to me what are the step to configure IIS to work with Perl CGI. This is really driving me mad.

pls pls help me
Question by:da511
  • 2
  • 2

Expert Comment

ID: 2643789
Hi there,

It's very simple. All u have to do is
right click on properties tab of the server available on IIS. In Master properties edit the WWW settings. Now click on the "Home Directory" tab on top. Click the "Configuration" button.

A window opens up. Use the tab on top "Add Executables" . Now click on the Add button. A small window opens this time. Now enter the path leading to the Location of perl.exe on the m/c. in Executable field. followed by
a space and %s%s. Then give the entry in extension field as .pl or .cgi as the file may be. That's all ur perl configurtation is done. Apply the settings and restart the IIS.

Hope this'll help u out.


Author Comment

ID: 2643849
I got the following errors

<HTML><HEAD><TITLE>Internal Error</TITLE></HEAD>
<H1>Error in /cgi-bin/Scart_Viewer.exe</H1>
The following internal error has occurred:
<PRE>Component 'MSADODC.OCX' or one of its dependencies not correctly registered: a file is missing or invalid Error Number =  339</PRE>
<I>Please</I> note what you were doing when this problem occurred,
so we can identify and correct it. Write down the Web page you were
using, any data you may have entered into a form or search box,
and anything else that may help us duplicate the problem.
Then contact the administrator of this service:
<A HREF="mailto:YourEmailAddress@Here">

Author Comment

ID: 2643951
I had follow your steps but still doesn't work
LVL 10

Accepted Solution

makerp earned 400 total points
ID: 2643993
this is cut from another question i have answered

to install/configure perl in iis do this.. its easy    

if your on winNT then download activeperl. it makes for such an easy life. http://www.activestate.com 

to enable a dir to allow execute access:

all you have to do is set the directory that you want to exe in to execute rights from within the microsoft managment consolue or using pws managemnt thingie. DO NOT set that dir to write access as well, if you try mmc will warn you of security probs.
to do this select properties on the dir in question (cgi-bin if you like) and then selet execute on the directory tab. this can be at virtual dir level of a dir underneath this.

setting up perl.exe:

when you install activeperl it sets up the .pl link to the perl exe for you. if your not using activeperl or you installed active perl after iis then you need to go to mmc/default web site/ properties/home directory and then click on the configuration option. a window will appear with all of your exention mappings in. add one for .pl

extension - .pl
executaable - <DRIVE:>\<perl path>\perl.exe %s %s
method exclusions - PUT,DELETE

by doing this at the web site level these settings will stand for all virtual dirs unless you specify other wise.

if its a perl script you want to run then leave the .pl extension, put the script in the dir with exe rights and your off !!

IIS also supports the use of a perliis.dll mapping to a .plx extension. im not sure but i think this is microsofts awnser top mod_perl. dont quote me on this though as ive never had the need to use it...

because iis does the perl thing on the extension you don not need #! perl path at the beging of you script.  if you do it will be ignored ..

to run a standard .exe then the dir permissisions need to be execute

hope this is what you want ?
LVL 10

Expert Comment

ID: 2643997
the error you are getting is internal to the .exe you are trying to run NOT IIS

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

588 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