CGI on Windows 2000

Post Reply
donaghy2
Posts: 1
Joined: Thu Mar 22, 2001 5:28 pm

CGI on Windows 2000

Post by donaghy2 »

I am working on a windows 2000 server. How can I test to see if the cgi is working correctly? I wrote a simple script "test.cgi" below and it does not work when placed in the script directory. What am I missing?

#!/inetpub/scripts/test.cgi

print "Content-type:text/plain","\n\n";

<html><head><title>Test Page</title></head>\n;
<body>\n;
<h2>Hello, world!</h2>\n;
</body></html>;
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

CGI on Windows 2000

Post by John »

The simplest method if it looks as if you have your virtual directories set up correctly would be to put texis.exe in that directory, and then access it as:

http://servername/scripts/texis.exe

If you get a file not found, then the virtual directory is not known to IIS.

If it asks you to download the file then you do not have execute permissions set.

If you get the texis version displayed then it is correctly installed.
John Turnbull
Thunderstone Software
Post Reply