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
jastroemAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MaDdUCKCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jastroemAuthor Commented:
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
MaDdUCKCommented:
>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
jastroemAuthor Commented:
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
MaDdUCKCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.