Link to home
Start Free TrialLog in
Avatar of jastroem
jastroem

asked on

run cgi on local PC (with PWS)

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
ASKER CERTIFIED SOLUTION
Avatar of MaDdUCK
MaDdUCK

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jastroem
jastroem

ASKER

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)
>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
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/

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.