My boss wants me to set up a webstore on our intranet to show the marketing dept. what can be done. My problem is that I have never used perl or cgi to build a website. I always used straight HTML. He gave me the CGI/perl Cookbook which contains a webshop and all I need to get it up and running. I have until Wendsday the 13th to have something to show the managers. I think I have followed every step in the book and in the help section at the Perl website, but I cannot get the button to link to the cgi script. I get a page not found 404 error. Below is the first part of the webshop CGI and the config. txt files. We are running a windows 2000 server machine using IIS and indigo perl which uses Apache. please look at my code and help me find my mistakes. Thanks
#!/usr/local/bin/perl ###################################################################### +###### # + # # WebShop Version 1.5 + # # Written by Matthew Wright mattw@worldwidemart.com + # # Created 7/12/96 Last Modified 5/2/97 + # # + # # Copyright 1997 Craig Patchett & Matthew Wright. All Rights Reserved +. # # This program is part of The CGI/Perl Cookbook from John Wiley & Sons +. # # License to use this program or install it on a server (in original o +r # # modified form) is granted only to those who have purchased a copy of + The # # CGI/Perl Cookbook. (This notice must remain as part of the source co +de.) # # + # ###################################################################### +###### ###################################################################### +###### # Define configuration constants + # ###################################################################### +###### %CONFIG = ('recipient', '', 'subject', '', 'email', '', 'name', '', 'address', '', 'zip', '', 'field_names', '', 'sort', '', 'print_config', '', 'env_report', '', 'redirect', '', 'required', '', 'error_html_template', '', 'success_html_template' +, '', 'email_template', '', 'reply_message_template +', '', 'reply_message_attach', '', 'reply_message_subject' +, '', 'reply_message_from', '', 'log_template', '', 'log_filename', '', 'log_fields', '', 'log_delimiter', '||', 'log_uid', '', 'blatemail', '', 'mail_list', ''); # $CONFIG_DIR is the full path to the root directory under which # configuration files must be stored. It should end with a directory # delimiter $CONFIG_DIR = 'C:/indigoperl-5.6/cgi-bin/webshop/';C:/indigoperl-5.6/h +tdocs # $WEBSHOP_CGI_URL is the URL of this CGI script. $WEBSHOP_CGI_URL = 'http://192.168.0.14/C:/indigoperl-5.6/cgi-bin/webs +hop.cgi'; # $WEB_SERVER is the host name of your web server. If the name of you +r web # server is host.xxx, set this to 'host.xxx'. $WEB_SERVER = '192.168.0.14'; # $SMTP server is the server name of your SMTP server. For example, i +f # your service provider is host.net, try setting this to host.net or # smtp.host.net $SMTP_SERVER = 'mail.herb-pharm.com'; # This is the directory for lock files to be stored. It is recomended + that # this be set to /tmp if you are on a Unix system or some place outsid +e of # the web server space. $LOCK_DIR = 'c:/indigoperl-5.6/htdocs/tmp/'; # This is the maximum amount of time the CGI script should wait before + it # returns an error that it could not lock the file. $MAX_WAIT = 5; # $REQUIRE_DIR is the directory in which all of your required files ar +e # placed. On most systems, if ou leave the required files in the same # directory as the CGI script, you can leave this variable blank. # Otherwise, if you move the required files to another directory, spec +ify # the full path here. $REQUIRE_DIR = 'c:/indigoperl-5.6/cgi-bin';
Config.txt
# Data File Variables $DATABASE = 'c:/indigoperl-5.6/htdocs/database.txt'; $MAX_MINUTES = 15; $PRODUCT_INFO = 'c:/indigoperl-5.6/htdocs/products.txt'; $TAX_TABLE = 'c:/indigoperl-5.6/htdocs/taxes.txt'; $SHIPPING_TABLE = 'c:/indigoperl-5.6/htdocs/shipping.txt'; # Page Template Variables $BASE_PRODUCT_PATH = 'c:/indigoperl-5.6/htdocs/'; $INTRO_HTML = 'c:/indigoperl-5.6/htdocs/feedback.htm'; $REVIEW_TEMPLATE = 'c:/indigoperl-5.6/htdocs/feedback.htm'; $INVOICE_TEMPLATE = 'c:/indigoperl-5.6/htdocs/invoice.html'; $FINAL_TEMPLATE = 'c:/indigoperl-5.6/htdocs/final.html'; # Email Variables $EMAIL_TEMPLATE = 'c:/indigoperl-5.6/htdocs/feedback.txt'; $ORDER_SUBJECT = 'FeedBack Information'; $ORDER_TO = 'eagle5@cdsnet.net'; $CC_ORDER = ''; $REPLY_TEMPLATE = 'c:/indigoperl-5.6/htdocs/feedback.txt'; $REPLY_SUBJECT = 'Order Confirmation'; $REPLY_FROM = 'Herb Pharm <wbishop@herb-pharm.com>'; 1;

In reply to cgi Beginner by willyb21

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.