Page 1 of 1

CGI on Windows 2000

Posted: Thu Mar 22, 2001 5:37 pm
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>;

CGI on Windows 2000

Posted: Thu Mar 22, 2001 5:47 pm
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.