in reply to cgi Beginner

This URL in your code looks suspicious to me:

http://192.168.0.14/C:/indigoperl-5.6/cgi-bin/webshop.cgi
You seem to have a full path for your CGI file in there, which won't work. You need to find out what the root directory is for IIS CGI scripts, and amend the URL. For example, if IIS uses C:\WebRoot\cgi-bin\ as its root directory, and you put the file 'webshop.cgi' in there, your URL will be:

http://192.168.0.14/cgi-bin/webshop.cgi

You should be able to find this information in the IIS configuration panel, or the docs. Any IIS monks who can help?

Replies are listed 'Best First'.
Re: Re: cgi Beginner
by Theseus (Pilgrim) on Nov 07, 2002 at 21:30 UTC
    I don't know if I'd consider myself an IIS monk, but I definitely have to deal with it on a daily basis at work.

    IIS' default web root directory is C:\Inetpub\wwwroot. If not, go to Internet Services Manager in your Administrative Tools, right click the web site in question(probably your Default web site), and the path you're looking for will be on the Home Directory tab.

      To Theseus and Famous; you were both right about my url being off and where the root directory is located. I even set IIS to look into my web dirictory by default with the help you posted, but I still cannot get any of the product pages to come up using the cgi script. I am beginning to have my doubts that I actually have perl running on my machine. I use Indigo Perl and it is supposed to come with a preinstalled Apache webserver. When I start the program I get Apache running and no errors but I have my doubts. Thanks for your help so far and if you think of any thing else email me at wbishop@herb-pharm.com at least that way I will get back to you a lot faster. Thanks again
        I don't know about Indigo perl, as I have Activestate running (and it automatically gives you the option of adding an ISAPI (sp?) module for IIS so that you can run perl scripts.) But I do know that Apache and IIS are two DIFFERENT webservers.

        To find out which one is running and what not, you should just be able to type on the machine http://localhost/ or http://<machine_name>/ and it should give you the apache or IIS default page. Anyhow, you might have to close down IIS to have the Apache server running correctly or have it run on a different port than IIS (not to sure of the technical details here). This might mean that you have to deal with the directories that apache is looking for stuff probably something like:

        c:\...\apache\cgi-bin\

        as opposed to IIS. Anyhow, I am currently getting some of the info from IndigoPerl and perhaps it will contain other information to get your project going.

        -enlil