Pre-Installation Steps

osCommerce Online Merchant is a web based solution that needs its relevant files to exist on the web server. The files can be copied to the web server by extracting the download package on your computer and uploading its contents to the web server via FTP, or by copying the download package to the web server directly and extracting its contents there.

Copying the Files to the Web Server

The contents of the download package need to be copied to the public HTML directory the web server is serving from.

Examples of public HTML directories are:

  • /home/scott/public_html/
  • /srv/www/htdocs/
  • /usr/local/htdocs/
  • /var/www/vhosts/domain.com/httpdocs/

The contents of the download package once extracted is:

File/Directory Description
catalog The directory containing the PHP source code files.
CHANGELOG The changelog file describes the changes made in published releases.
documentation.pdf The documentation in PDF format.
extras The extras directory contains previous upgrade guides and image templates.
LICENSE The GNU General Public License.
release_notes.pdf The release notes for the downloaded version.
STANDARD The standard file describes the coding standards used in the PHP source code files.

Using FTP to Copy the Download Package Contents to the Web Server

The download package of osCommerce Online Merchant should be saved and extracted on your computer to reveal its contents.. The catalog directory must be copied to the public HTML directory on the web server. This can be achieved on most FTP clients by simply dragging the catalog directory from your local file browser pane to the remote pane listing the files on your web server.

Directly Extracting the Download Package on the Web Server

The download package of osCommerce Online Merchant should be saved and extracted on the web server to reveal its contents. The catalog directory must be copied to the public HTML directory. This can be achieved with the following command:

cp -R catalog /public_html/

File Permissions

The following files need to be writable by the web server during the installation procedure:

File
catalog/includes/configure.php
catalog/admin/includes/configure.php

Please consult with your hosting provider to find out the permission flag to use to allow the web server to have write permissions to files and directories.

The above files must have their web server writable permission removed after the installation procedure has completed successfully. This is described in the Post-Installation Steps page.
In some cases a global write permission flag of 777 can be used but may lead to an insecure installation if not reverted afterwards.

Changing the file and directory permissions can be performed by most FTP clients or directly on the server.

Using FTP to Change File Permissions

Most FTP clients are capable of changing file permissions on the server. This is commonly performed by right-clicking on the file or directory and selecting "Properties" or "Attributes" on the context menu.

The file permissions can be changed by allowing all users to read, write, and execute the file, or by manually entering the global readable and writable flag of 777.

Changing File Permissions Directly on the Server

Changing file permissions directly on the server can be performed with the following command:

chmod 777 /public_html/catalog/includes/configure.php
chmod 777 /public_html/catalog/admin/includes/configure.php

Database

A MySQL database needs to exist for the installation procedure to be able to successfully import the database table structure and required data settings.

Web Server and Database Server Details

The following web server and database server details are required during the installation procedure. Please consult your hosting provider if these details are not known.

Web Server Details

Setting Description Example
Server Address The web address to the online store. http://www.example.com/catalog/
Root Directory The directory where the online store is installed on the server. /public_html/catalog/

Database Server Details

Setting Description Example
Server Address The address of the database server in the form of a hostname or IP address. localhost
Username The username used to connect to the database server. scott
Password The password that is used together with the username to connect to the database server. tiger
Database Name The name of the database to hold the data in. oscommerce