Solved

how can I use CGI inside the IIS sever?

Posted on 2000-02-27
7
193 Views
Last Modified: 2013-12-25
Is it possible for me to use the IIS server to run the CGI program? Do I need to install any external component?
0
Comment
Question by:binary1
[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 10

Expert Comment

by:makerp
ID: 2564159
do you jsut mean any exe or perl script etc
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2565590
Yes you can run CGI programs from IIS. in case you are using PERL, IIS comes with PERL bundled. But to make it work you have to add some configuration settings to the IIS server.

Are you using/Planning on using PERL??
0
 
LVL 1

Expert Comment

by:ercis
ID: 2566305
binary1, you can also use binary executables as CGI on IIS, or even .BAT files ...
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:binary1
ID: 2567632
I plan to use the perl, can anyone tell me how can i run the excutable /binary file in the cgi-bin directory? how to config the iis server for running the cgi program?
0
 
LVL 10

Accepted Solution

by:
makerp earned 50 total points
ID: 2568070
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.

when yiou 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
 

Expert Comment

by:trentpack
ID: 2573322
how about this:
Visit this site, add CGI extention to IIS recongised extentions:
Vistit
http://www.geocities.com/SiliconValley/Park/8312/perlis.htm
0
 

Expert Comment

by:trentpack
ID: 2573325
You do need to install PERL, visit http://www.activestate.com

It's free.  You must then do the above.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

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

Suggested Solutions

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 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