Solved

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

Posted on 2000-03-22
5
249 Views
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
0
Comment
Question by:da511
  • 2
  • 2
5 Comments
 

Expert Comment

by:venky75
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.

Bye
venky
0
 
LVL 2

Author Comment

by:da511
ID: 2643849
I got the following errors

<HTML><HEAD><TITLE>Internal Error</TITLE></HEAD>
<BODY>
<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">
<ADDRESS>&lt;YourEmailAddress@Here&gt;</ADDRESS></A>
</BODY></HTML>
0
 
LVL 2

Author Comment

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

Accepted Solution

by:
makerp earned 100 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 ?
0
 
LVL 10

Expert Comment

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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

770 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