Solved

run cgi on local PC (with PWS)

Posted on 1998-03-27
5
241 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
[X]
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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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 the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

734 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