Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Basic CGI question......

Posted on 1999-07-11
Medium Priority
Last Modified: 2016-10-02
How can I execute cgi scripts? I want to learn Perl but then I dont know how to configure a server to execute sample scripts.. Please help!!!! Btw I am using the MS Personal Web Server downloaded from Microsoft Website and Windows 98

Another question is that how can i get the IIS server... not much idea what is that server... can I get it for FREE anyway?

Any kind hearted would like to suggest some good links for help in Perl?

Please help!!! thanx a lot
Question by:tonyleung88
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
  • 5
  • 2
  • 2
  • +4

Author Comment

ID: 1834994
Edited text of question.
LVL 11

Expert Comment

ID: 1834995
IIS is available on the Windows NT Option pack which can be downloaded for free from Microsoft (but it is V big). However so far as I'm aware it runs on NT only (someone else may know better)

To configure for execution you must clicked the advanced box in the server manager and check the execute option for the directory that will contain your scripts.

If you get the perl from this (I think) will install its self into PWS) This is also a fairly good perl site (for windows biased perl) Otherwise is pretty good.


Expert Comment

ID: 1834996
why not try Apache web server instead ?
free and use by many ...

well supported...

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  


Expert Comment

ID: 1834997
I run IIS on NT-server.  It is the only OS it will run on.  You can find it at Microsoft.

If you install perl, you can run it just like that :

perl perl perl

You better run the DLL of perl, is stead of the CGI.  It runs mutch faster, using the DLL.   Starting the perl-interpreter takes a lot of time.  Leave CGI for unix-developers, as unix has it's own advantages.


Expert Comment

ID: 1834998
We (at work) run IIS. You can get it at Microsoft.  I think it's free.  It runs on NT-server only.

I installed PERL from activestate.  Use the DLL in ASP-scripts.  It runs very good, and is much faster than each time starting the perl-interpreter.  The dll runs both on personel web server, as on IIS.  

Leave CGI for Unix, as Unix is more efficient with that.  

If you go to, you'll find the way to activestate.

LVL 11

Expert Comment

ID: 1834999
yvovolders: IIS runs on NT workstation as well as server.
Also you can run it as you have suggested, although I've never bothered with this approach but if you use it as a conventional CGI it will still use the DLL (plus it becomes portable to and you can use CGI libraries fully which I don't think you can do with the SERVER at approach.

So far as CGIs on UNIX only I agree if you are talking Perl Standa lone programs but other CGIs (eg exes) there is not difference between Unix and NT etc.

But more to the point do you always post other peoples comments as your answers!

Slok: If you've run Apache on NT you wouldn't suggest that it is very buggy and happily chews resources without ever been accessed. (Frankly in many respects IIS is now far superior to Apache IMHO).

Author Comment

ID: 1835000
thanx for all your help

can i exec cgi/perl scripts in my personal web server?
that will save me a lot of trouble in installing another server just for cgi/perl scripts

yvovolders... what do you mean by "run the DLL of perl"
sorry that i dont get you...

Accepted Solution

nathans earned 200 total points
ID: 1835001
By the way IIS is for NT only  PWS is for Win95/Win98!

1. since you have PWS (Personal Web Server) already installed we will work with it.

Go to  --This is the Download Page

Download the latest Perl They are calling it ActivePerl on the first Page.

Go download the Latest Build of it.  Then Run the Install and it will install itself.

put the below text in a file named  in the Scripts Directory Which is your CGI-BIN.  If you installed the websever on your C Drive should be either


--------------- Start of Code  ------------------------
print "Content-type: text/html\n\n";            
print "<HTML>";
print "<HEAD><TITLE>Hello!</TITLE></HEAD>";
print "<H1>Hello!</H1>";

--------------- End of Code  ------------------------

to run the above code. You first need to make sure your PWS Works then in the browser type http:/PWSSERVERNAME/scripts/

You should get a small hello! web page back.

If you have anymore problems post them.

Author Comment

ID: 1835002
hi nathans

thanx for your help
i followed what you said... at least it wont prompt me to save the file but it displayed all the text in the file withoput the html tags

i thought it supposed to appear only "Hello"?
it gave me something like this:

print "Content-type: text/html\n\n";
print "";
print "";
print "Hello!";

why is this so???

Author Comment

ID: 1835003
anyone could help me??
i'm waiting......


Expert Comment

ID: 1835004
Try renaming the file to hello.plx

It has been awhile since I installed the .plx files use the dll and the .pl files use the perl.exe I had some trouble after installing I did not get the .pl files to work but the .plx files worked fine.  Check this out and get back to me... by the way if I don't answer quickly post a comment like you did because sometimes I  miss a Experts-Exchange email.

Author Comment

ID: 1835005
after i renamed it to hello.plx... the same results....
so... what can i do next??

pls advise....

btw.. thanx nathans for your help

Expert Comment

ID: 6873077

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.
Thank you,
Moderator @ Experts Exchange

Expert Comment

by:Cassy Jeong
ID: 41825883
my boss needed to fill out IRS 940 - Schedule A earlier this week and was informed of a web service that has a ton of fillable forms . If people are searching for IRS 940 - Schedule A too , here's

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

715 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