ShopSite 7.1
Scripted Installation Instructions

These instructions provide steps for installing and configuring the ShopSite software using installation and configuration scripts.

If you are upgrading from a previous version of ShopSite, please use the upgrading instructions.

Table of Contents

I. Pre-Installation Considerations
II. Planning ShopSite Directories
III. Download Installation Files
IV. Mall Initialization
A. Edit the config_mall.aa File
B. Run the start_install_mall_sc Script
C. Configure the Web server
V. Store Initialization
A. Edit the config_store.aa File
B. Run the start_install_store_sc Script
C. Configure the Web Server
D. Tell the Seller that the Store is Ready
VI. Customizing ShopSite

I. Pre-Installation Considerations

II. Planning ShopSite Directories

ShopSite puts files in five directories:

These installation instructions refer to these directories and their associated URLs by their generic function, such as SHOPSITE_DIRECTORY, not by name. You, as the installer, must provide the actual names. Plan the directory locations before starting the installation. An example directory structure might look like this:

III. Download the Installation Files

You must download three zip files for installation: the regular ShopSite installation, the scripted install files, and the scripted auth file generator.

  1. Use an FTP client to connect to support.shopsite.com.
  2.  

  3. Log in, using the username and password that were given to you for downloading the ShopSite software.
  4.  

  5. Navigate to the directory for your server platform.
  6.  

  7. Use a binary-mode transfer to download the zip file for your ShopSite version and platform. Put the file in a directory on your server where you keep compressed (zipped) program installation files.
  8.  

  9. If there is a patch directory in the operating system directory, cd to it. Download all of its contents to the same location as the installation file. If there are patches, you will install them after completing the regular installation.
  10.  

  11. Disconnect the FTP session, and then reconnect to support.shopsite.com.
  12.  

  13. Log in, this time using the username and password to access the scripted install files.
  14.  

  15. Use a binary-mode transfer to download the zip file for scripted install. Put the file in a directory on your server where you keep compressed (zipped) program installation files.
  16.  

  17. Disconnect the FTP session, and then reconnect to support.shopsite.com.
  18.  

  19. Log in, this time using the username and password to access the scripted auth file generator files.
  20.  

  21. Use a binary-mode transfer to download the zip file for the scripted auth file generator. Put the file in a directory on your server where you keep compressed (zipped) program installation files.
  22.  

  23. Unzip all three files into a directory on the server where the webserver user has execute and write permission, such as somewhere under the cgi-bin directory.

IV. Mall Initialization

You must edit one configuration file and run one shell script to prepare your server to host ShopSite stores. The script creates directories and installs software on the server.

Note:

When including URLs in the configuration files, you should not include a trailing slash on the URL path.
  • Correct:
    http://www.mystore.com/cgi-bin/sc
  • Incorrect:
    http://www.mystore.com/cgi-bin/sc/

A. Edit the config_mall.aa File

The config_mall.aa file contains settings used by the installation scripts to configure your mall and stores.

 

  1. Log in or su to the UNIX_WEB_USER_ID account.

     

  2. Change directory to the location of the install files.

     

  3. Open the config_mall.aa file with an editor and set values for the following variables.

     

    SHOPSITE_DIRECTORY
    Absolute pathname of ShopSite directory; all CGI scripts for the merchants to create and manage their stores reside here. The directory will be created if it does not exist.

     

    SHOPSITE_URL
    Absolute URL that references the SHOPSITE_DIRECTORY. This should point to a cgi-bin directory, such as http://host/whatever/cgi-bin/ss.

     

    SHOPPING_CART_DIRECTORY
    Absolute pathname of the shopping cart directory; CGI scripts for creating orders reside here. The directory will be created if it does not exist.

     

    SHOPPING_CART_URL
    Absolute URL that references SHOPPING_CART_DIRECTORY. This should point to a cgi-bin directory, such as http://host/whatever/cgi-bin/sc.

     

    SHOPSITE_IMAGE_DIR
    Absolute pathname of the directory for storing graphics used in the ShopSite merchant interface. The directory will be created if it does not exist.

     

    SHOPSITE_IMAGE_URL
    Absolute URL that references the SHOPSITE_IMAGE_DIR. This should be located under the Web server's document root, such as http://host/shopsite/shopsite-images.

     

    UNIX_WEB_USER_ID
    The Web server user ID.

     

    UNIX_WEB_GROUP_ID
    The Web server group ID.

     

    PATH_TO_TAR
    Absolute pathname to tar executable, for example, /bin/tar.

     

    PATH_TO_SENDMAIL
    Absolute pathname to the sendmail executable, for example, /usr/bin/sendmail.

     

    LOG_DEBUG
    Set to YES (all caps) to enable logging debug messages to a log file.

     

    DEBUG_LOG_DIRECTORY
    The full path name, with no file name, to where the log file is to be stored.

     

    DEBUG_LOG_FILE
    The log file name.

     

    BACKUP_ON_UPDATE
    If this is a new installation, enter NO. If you are updating an existing mall, enter YES to have the update script back up the existing ShopSite directories to tar files. The tar files can get large, so enter NO if your system does not have much available disk space.

    Note: Tar on Solaris complains about symbolic links longer than 99 characters, and may not include those links in the tar file.

     

    SERVER_LOG_PATH
    Full path name to the directory where server logs are stored.

     

    SERVER_LOG_NAME
    File name of the server log file.

     

    MALL_TYPE
    Must be set to normal.

     

  4. Double-check the values that you set, and then save and close the file.
  5.  

  6. Make a copy of the config_mall.aa file, as a security measure against the file being overwritten or erased.

B. Run the start_install_mall_sc Script

The start_install_mall_sc script performs initial configuration of the ShopSite software.

 

  1. If you have already created the SHOPSITE_DIRECTORY ir the SHOPPING_CART_DIRECTORY, make sure that the UNIX_WEB_USER_ID and UNIX_WEB_GROUP_ID are set as "owner" and "group " for those directories.

     

  2. Log in or su to the UNIX_WEB_USER_ID account.

     

  3. Verify that your csp.id file is in the same directory as the start_install_mall_sc.ksh script.

     

  4. Run the script.

     

    % start_install_mall_sc.ksh config_mall.aa

    Note: All the scripts are designed to run under a KornShell (ksh). If your server does not have ksh installed, you may need to edit the scripts to run under a different shell. If you have problems running the scripts, try typing a "./" before the script name, for example, ./start_install_cgi instead of start_install_cgi.

  5.  

  6. Check the log file for errors. If you left the LOG_DEBUG variable set to YES, then the install script created a log file in the DEBUG_LOG_DIRECTORY. The default name for the file is debug.log. Examine this file to ensure that there are no FAILED messages. If you find any of these messages, correct the problem (most likely a file permission problem) and rerun the script.

C. Configure the Web Server

Configure the Web server to recognize the new directories:

V. Store Initialization

The config_store.aa file and the start_install_store_sc.ksh script are provided as examples of how to call the underlying script that creates and initializes stores, which is install_store_sc.ksh. These scripts accept command line parameters, such as those passed by the start_install_store_sc.ksh script. You can customize the example script to suit your needs or create your own script. You may choose to configure your server such that, once a merchant requests a store by filling out an online form, the store will be created with no operator intervention required.

A. Edit the config_store.aa File

The start_install_store_sc script reads the settings in the config_store.aa file and creates the data and HTML directories for a new store and performs other configuration on the content server. You can either edit the config file each time you need to create a store to set the values for that particular store, or configure the script to accept command-line variables. These instructions show you which variables to set.

 

Note:

When including URLs in the configuration files, you should not include a trailing slash on the URL path.
  • Correct:
    http://www.mystore.com/cgi-bin/sc
  • Incorrect:
    http://www.mystore.com/cgi-bin/sc/

  1. Open the config_store.aa file with an editor and set values for the following variables:

     

    SHOPSITE_STORE_ID
    A merchant user name. This is the user name that the merchant uses to access ShopSite (the SHOPSITE_URL is password-protected).

     

    SHOPSITE_SELLER_PASSWORD
    The password associated with the SHOPSITE_STORE_ID. This is the password that the merchant uses to access ShopSite (the SHOPSITE_URL is password-protected). It is a good idea to set a password that is easy to remember, but difficult for someone else to guess.

     

    STORE_FRONT_URL
    Absolute URL of the merchant's storefront, that is, the store that is accessible to the merchant's customers via the Internet.

     

    SECURE_SHOPSITE_IMAGE_URL
    Specify the URL that ShopSite should use for images on secure pages, such as the order form. Usually this is the same as the SHOPSITE_IMAGE_URL, with the addition of https: instead of http:.

     

    SELLER_EMAIL
    The merchant's e-mail address. This must be correct, as the merchant is notified of orders and other important information via e-mail.

     

    DATA_DIRECTORY
    Absolute pathname to the data directory for the merchant's store. This directory will hold the product and pages database.

     

    HTML_DIRECTORY
    Absolute pathname to the HTML directory for the merchant's store. This directory will hold the generated HTML pages for the store.

     

    SELLER_USER_ID
    The UNIX user ID to be assigned to the store's HTML directory. You can assign each merchant a separate user ID, or use the same ID for all merchants.

     

    SELLER_GROUP_ID
    The UNIX group ID to be assigned to the store's HTML directory.

     

    PRODUCT_TYPE
    Enter the service level of the store: pro, mgr, lte, or exp.

     

    MERCHANT_LOCALE
    An identifier for the language and locale that the merchant will see. This must be one of the supported ShopSite locales defined in the localeinfo.dat file in the shopsite directory, such as en-US.

     

    BUYER_LOCALE
    An identifier for the locale and language that buyers will see in the store. This must be one of the supported ShopSite locales defined in the localeinfo.dat file in the shopsite directory, such as en-US. Do not enter a locale for which there is no language pack installed.

     

    STORE_CURRENCY
    The currency to use in the store. This value must be a three-character ISO 4217 currency code, as defined in the currency.dat file in the shopsite directory.

     

    STORE_TYPE
    0 = default

     

    PAGE_LIMIT
    The maximum number of pages allowed in this store. Leave blank for no limit.

     

    PRODUCT_LIMIT
    The maximum number of products allowed in this store. Leave blank for no limit.

     

    UPDATE_HTPASSWD
    Defaults to YES, which tells the install script to update the .htpasswd file. If set to NO, the install script will not update the file.

    Note: ShopSite only sets up Apache-style passwords, using .htaccess files. If you are using a Netscape server, you can configure it to use .htaccess files by following the instructions at the Netscape site.

     

    USE_SECURE_SHOPSITE
    Enable/Disable using a secure connection when the merchant views orders. Set to YES only if you have a Web server that supports SSL and you have purchased a certificate for the server from a valid certificate authority.

     

    SECURE_SHOPSITE_URL
    Specify the URL of the secure ShopSite CGI. Usually this is the same as the non-secure CGI with the addition of https: instead of http:.

     

    USE_SECURE_SHOPPING_CART
    Enable/Disable using a secure connection when customers enter payment information. Set to YES only if you have a Web server that supports SSL and you have purchased a certificate for the server from a valid certificate authority.

     

    SECURE_SHOPPING_CART_URL
    Specify the URL of the secure shopping cart CGI. Usually this is the same as the non-secure CGI with the addition of https: instead of http:.

     

  2. Double-check the values that you set, and then save and close the file.

     

  3. Make a copy of the config_store.aa file, as a security measure against the file being overwritten or erased.

B. Run the start_install_store_sc Script

     

  1. Log in or su to the UNIX_WEB_USER_ID account.

     

  2. Run the script, passing in the two configuration files as parameters:

     

    % start_install_store_sc.ksh config_mall.aa config_store.aa

C. Configure the Web server

Make the following administrative changes to the Web server:

  1. Alias the STORE_FRONT_URL to the HTML_DIRECTORY for the store.

     

  2. Password-protect the SHOPSITE_DIRECTORY with the user name SHOPSITE_STORE_ID and the password SHOPSITE_MERCHANT_PASSWORD. Most likely you will be adding this user name and password to a list or file that controls access.

Note:

ShopSite only sets up Apache-style passwords, using .htaccess files. If you are using a Netscape server, you can configure it to use .htaccess files by following the instructions at the Netscape site.

D. Tell the Merchant that the Store is Ready

You have completed initializing a new store. Now contact the merchant and give them:

VI. Customizing ShopSite

You can customize parts of the interface that sellers and customers see as they interact with ShopSite. For more information, see the page on Customizing ShopSite.


ShopSite Help and Resource Center
April 5, 2004
Give Feedback

© 2007, ShopSite, Inc.
ShopSite Shopping Cart Software