Solved

how can I use CGI inside the IIS sever?

Posted on 2000-02-27
7
175 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
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
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 strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to dynamically set the form action using jQuery.

706 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

20 Experts available now in Live!

Get 1:1 Help Now