Solved

run cgi on local PC (with PWS)

Posted on 1998-03-27
5
223 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.csv files 5 95
How to obtain Administrator permission when you are the Administrator 6 78
ROBOFTP UNZIP 1 46
[SQL server / powershell] bulk delete table from CSV 8 33
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
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 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 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…

831 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