ShopSite is easy to install on your Linux or FreeBSD Web server; the only tools required are a Web browser and FTP or shell (SSH) access to your Web server.
Note: |
Most ShopSite hosting partners will install ShopSite on your server for you. You should contact your ShopSite partner if you have questions about your ShopSite installation.
These instructions are for installing new ShopSite stores on Linux/FreeBSD servers.1 See the Upgrade Help for instructions to upgrade an existing ShopSite installation. |
Warning: |
Whenever connecting to your server for administrative purposes (such as installing or upgrading ShopSite), you should use a secure connection. Telnet and standard FTP are both unencrypted connections, and could be intercepted. Always use a secure connection, such as SSH for shell connections, and FTP over SSH or SFTP for file transfers.
|
The process of installing ShopSite includes the following phases:
In order to keep the instructions as clear as possible, examples that follow assume you are installing a single2 ShopSite store on the main domain name of your Web server, and that your Web server files are located within the /www directory on your server. If you are installing your ShopSite store in a different location, you will need to use the appropriate paths for your Web server.
If you are running a properly configured, compatible Web server, ShopSite usually does not require any special Web server configuration. Before you get started, however, you should be aware of the following:
Prior to beginning the installation, you should plan out where you will install the different ShopSite directories2. You do not need to create any of these directories at this time, but you should decide where they will be and make sure they will have the required access. ShopSite will let you put the directories wherever you want, and you can name them however you wish, as long as the directories have the appropriate access rights for the Web server3. You will be prompted to specify the locations for these directories as part of the installation process.
Example FTP/Shell Path: /www/cgi-bin/shopsite-install
Example URL4: http://www.mystore.com/cgi-bin/shopsite-install
Example FTP/Shell Path: /www/cgi-bin/sc
Example URL4: http://www.mystore.com/cgi-bin/sc
Example FTP/Shell Path: /www/cgi-bin/ss
Example URL4: http://www.mystore.com/cgi-bin/ss
Example FTP/Shell Path: /www/htdocs
Example URL4: http://www.mystore.com
Example FTP/Shell Path: /www/htdocs/media
Example URL4: http://www.mystore.com/media
Example FTP/Shell Path: /www/htdocs/shopsite-images
Example URL4: http://www.mystore.com/shopsite-images
Example FTP/Shell Path: /www/data
Not Accessible using a URL
Once you are ready to install ShopSite, you need to obtain the installation files. Each ShopSite store requires a unique Auth file in order to run. See the Auth File Help for information about what an Auth file is and how to obtain one. Make sure you save your Auth file in a location where you will be able to find it later. Be sure to use ASCII (text file) format any time you use FTP to transfer your Auth file.
The ShopSite program files must be installed on the Web server.2 ShopSite partners can obtain the program installation files directly from ShopSite by following the instructions below. You will need the partner ftp username and password you were given when you signed the partner agreement. Make sure you have them ready before you start.
FTP to the ShopSite Support FTP server and download the installation files using one of the following methods:
Once you have all the files required to install ShopSite, you need to create the install CGI directory on your Web server and copy the install files into that directory.
If you have any patch files, you will apply them after you have completed installing ShopSite.
Note: |
If you are installing ShopSite Enterprise you must now Setup the Database Server before proceeding.
|
Once all the required files are in your Install Directory and have appropriate permissions and ownership3, you can run the Installation Program from your Web browser. To start, enter the Install Directory URL followed by /wwwinstall.cgi into the location bar of your Web browser, then press Enter.
When the Install Program loads in your Web browser, you should see ShopSite Install Menu displayed at the top of the screen. See Troubleshooting if you do not see this screen.
Select the radio button to Create a new ShopSite installation (with first store) and click Continue.
The next screen is where you will enter the settings, including directory locations and URLs, for the store. The Install Help button at the top of the screen will open this help page in a new browser window. You will be required to enter the following settings:
ShopSite CGI Directory and URLs |
|||
ShopSite directory | This is the FTP/Shell path of the ShopSite Directory. | ||
URL of ShopSite CGI's | This is the URL of the ShopSite Directory. | ||
Secure URL of ShopSite CGI's (Optional) | This is the secure URL of the ShopSite Directory for use when you have a security certificate. | ||
ShopSite CART CGI Directory and URLs |
|||
Shopping Cart directory | This is the FTP/Shell path of the Shopping Cart Directory. | ||
URL of Shopping Cart CGI's | This is the URL of the Shopping Cart Directory. | ||
Secure URL of Shopping Cart CGI's (Optional) | This is the secure URL of the Shopping Cart Directory for use when you have a security certificate. | ||
ShopSite Images Directory and URLs |
|||
ShopSite Images directory | This is the FTP/Shell path of the ShopSite Images Directory. | ||
URL of ShopSite Images | This is the URL of the ShopSite Images Directory. | ||
Secure URL of ShopSite Images | This is the secure URL of the ShopSite Images Directory for use when you have a security certificate. | ||
General Settings |
|||
Location of sendmail executable | This is the FTP/Shell path for sendmail on your server. | ||
Location of tar executable | This is the FTP/Shell path for the tar utility on your server. | ||
Store Settings |
|||
Store directory (associated with Store URL defined in AUTH file) | This is the FTP/Shell path of the Store Pages Directory. | ||
Store URL | This field displays the URL for the Store as defined in the AUTH file. | ||
Secure Store URL | This is the secure URL for your Store, to be used if you have a security certificate. | ||
Data directory | This is the FTP/Shell path of the Data Directory. | ||
Password for StoreID | Enter the password that will be initially used to access the ShopSite back office. The merchant can change the password by going to Utilities > Change Password after logging in.
|
||
Merchant email address | Enter the contact e-mail address for the merchant. The merchant can change this later by going to Preferences > Hosting Service after logging in. | ||
Locale | Select the locale for ShopSite to use. The merchant can change this later by going to Preferences > Locale after logging in. | ||
Currency | Select the primary currency for ShopSite to use. The merchant can change this later by going to Preferences > Locale after logging in. |
To use the secure URLs listed above, check the box for Enable use of any secure URLs specified above? If you have the certifications and correct secure URLs, they should be available upon installation completion.
If you have not already created the directories ShopSite will use, check the box for Do you want Install to create any directories that do not already exist? If you set up your permissions properly, ShopSite should be able to create these directories.
Click OK to install ShopSite using the settings you specified. The Installation Progress screen will display information about the installation, with any warnings or errors displayed in red. If the installation completes successfully, you will see The update has been completed in large text near the end of the screen. ShopSite will rename the store.auth file to store.bak when the install completes to prevent anyone from running the Install Program again.
Once the installation is complete, you will need to install any patches that you have. Patches are usually a newer version of a CGI file included in the original installation. To install a patch file do the following for each patch file:
Once you have confirmed that ShopSite is installed and working, you may remove the Install Directory and its contents in order to free up disk space. If you do not delete the directory, you should at least change permissions3 for the Install Directory so it is no longer accessible from the Web, in order to prevent anyone from accessing the Installation Program without permission.
In addition to the information provided above, you should also be aware that PCI compliance requires access logging by the webserver (in this case, Apache) and also by the OS. Access logging is enabled by default for both. Disabling access logging will invalidate PCI compliance. Please see this article for information on Apache Webserver access logging and this article for more information on access logging for Ubuntu and CentOS.
If you encountered any problems installing ShopSite, look at what errors you got, and where you got them, then check this list of troubleshooting tips to see if your problems were caused by any of these common mistakes:
Footnotes:
1. If you are a ShopSite reseller using the scripted installation utility, see the Scripted Install help.
2. If you are installing multiple ShopSite stores on a single server, you can save space by having all the stores use the same CGI and ShopSite Images directories. Each store must have its own HTML, Media, and Data directories, as well as a unique license (auth file). For more information on installing multiple stores on a single server, see the Creating a ShopSite Mall instructions.
3. Linux and FreeBSD use file permissions to control what level of access a program (or the person using a program) has to a file or directory on the server. In order to install or run ShopSite, you must ensure the Web server has the correct ownership and permissions to run the install CGI and access the other install files. The ShopSite install files and the directory that contains them should belong to the user and group the Web server requires (usually, this is the user and group the Web server runs as). You will also need to grant the user and group read and write permission for the directory and files, and execute permission for the directory and the install CGI. See file permissions explained for more detailed information.
4. Sticklers for proper formatting of URLs will have noticed that when indicating a URL for a directory (rather than a specific file), the examples do not include a trailing slash at the end of the URL. The reason for this is because ShopSite uses the URLs from the configuration to create URLs to specific files, and will attach a slash before the path to the file. If you include a trailing slash in the URLs when you configure ShopSite, your URLs will get an extraneous slash in them such as http://www.mystore.com/cgi-bin/sc//order.cgi. While this normally will not cause any problems using ShopSite, it is not the proper way to format URLs either.