Solved

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

Posted on 2000-03-22
5
247 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
Comment Utility
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
Comment Utility
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
Comment Utility
I had follow your steps but still doesn't work
0
 
LVL 10

Accepted Solution

by:
makerp earned 100 total points
Comment Utility
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
Comment Utility
the error you are getting is internal to the .exe you are trying to run NOT IIS
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
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 …

763 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

8 Experts available now in Live!

Get 1:1 Help Now