Solved

run cgi on local PC (with PWS)

Posted on 1998-03-27
5
214 Views
Last Modified: 2013-12-25
Hope that someone can tell me how to try out cgi script on a local PC that runs with the MS Personal Web Server!!

On the MS FP CD there is a folder that SHOULD contain a program for this purpose (cgiwin32.exe) but it's not on my CD...

Thankful for any hints getting me closer to a solution.

Greetings
Jörgen
0
Comment
Question by:jastroem
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 60 total points
ID: 1832219
Skål out to Skandinavia!

You have to go to the PWS settings and create a virtual directory for the directory containing your exe or cgi files. Make this virtual directory allow executables, not only scripts. Then, using a browser, surf to this virtual dir and execute the cgis. If filename.exe does not work, try filename.cgi (simple rename) and vice versa.
0
 

Author Comment

by:jastroem
ID: 1832220
Hi MaDduck

Thank you for your answer on my cgi-question!

I regret to tell you that I think the answer is a bit unprecise... Questions that still remain for me is:

In that case how do I create a virtual directory in the PWS? Any special name that I have to give this directory?

I can hardly believe that a cgi script will run this way, what I mean is: the PWS need to know what to do with the cgi-script? And this is where I thought that the (on my CD missing) programm cgiwin32.exe should take over?

Best wishes
Jörgen

(From Scandinavia, though living in Switzerland)
0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1832221
>In that case how do I create a virtual directory in the PWS?
>Any special name that I have to give this directory?

To make it private, in NT, set the correct permissions, in Win95 disallow anonymous access or control access via IP address. You can give the directory any name. usually they are called cgi-bin, but I call mine cgi-pub and cgi-pvt for public and private access.

>I can hardly believe that a cgi script will run this way, what
>I mean is: the PWS need to know what to do with the cgi-script?
>And this is where I thought that the (on my CD missing)
>programm cgiwin32.exe should take over?

The CGI script will run this way. But I agree that Cgiwin32 is a better choice because it facilitates things. Be aware that then you have to call your cgis like this: /cgi-bin/cgiwin32.exe/mycgi.cgi.

I have cgiwin32 and I put it on FTP:
ftp://ftp.madduck.ml.org/pub

Hope this helps. I am open for further questions.
(where in switzerland are you?)

madduck out
0
 

Author Comment

by:jastroem
ID: 1832222
Hi again

Great. I'll go and get the cgiwin32.exe at your ftp. (I just got it!! Thanks)

In that case I don't have to create the virtual directory in my PWS... right?

>Be aware that then you have to call your cgis like this:       >/cgi-bin/cgiwin32.exe/mycgi.cgi.

Thank you, I read that on the FP CD, but as I said on my German FP98 CD the cgiwn32.exe is missing... why I don't know...

I'm living in Baden some 20 km sout hwest from Zürich. Where are you located?

Thanks
Jörgen

jastroem@netwings.ch

Visit the home page from which I'm one quarter
http://www.netwings.ch/jastroem/

0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1832223
You still have to create a virtual directory because cgiwin32 needs execute rights too.

I am a Munich citizen currently studying at university in Philadelphia, USA.

BTW: My girlfriend lives in Berne, which should be about 60 minutes from you. Greet her when you see her :-)

My email is madduck@flix.de so drop me a line whenever you feel like it.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

757 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

18 Experts available now in Live!

Get 1:1 Help Now