This section details how to install osCommerce using your SSH client. This is an advanced technique and requires that you fully understand what you are doing. If you are comfortable working from the Linux command line, this is a breeze, and you can have a fully functional osCommerce installation in about 15 minutes. This is the fastest method to install osCommerce if you know what you are doing. If you do not know how to use SSH, I recommend using the standard FTP installation method, unless you are willing to take extra time to learn this process.
This guide assumes the following path /home/public_html/catalog as your base install directory. If your path is different, adjust the below instructions accordingly. I also assume that you have uploaded the zip file to your server already and it is in your public_html directory.
***************************************************************************************************************************
Installation
1. Log into your server using your ssh client
2. cd public_html and unzip the osCMax zip file by typing the following command: unzip oscmax_v1.7.zip
3. Set the correct Pre-Install file permissions (See the table below). You may be able to skip this step, as the permissions should aready be preset in the zip file.
4. Create the admin/backups dir and set its permissions to 777 using the following commands mkdir catalog/admin/backups and chmod 777 catalog/admin/backups
5. pico .htaccess . Add this: DirectoryIndex catalog/index.php index.php.
6. Now, using phpMyAdmin or other mysql tool, create your osCommerce database, and user.
7. Run the osCommerce installation script through your browser. The url is http://www.yourserver.com/catalog/install/
8. Confirm that all information in the setup fields is correct, and add the correct mysql database, username and password. Import the sample data and complete the installation.
9. Test to make sure your catalog and admin sections are working using the buttons on the final page of the install process.
10. Using your SSH client, remove the install directory rm -Rf catalog/install
11. Set file permissions to Post-Install levels (See table below)
12. Password protect your admin directory using .htaccess and .htpasswd if you so desire. This step is optional as the Admin is already password protected by default.
13. Login to the admin at http://yoursite.com/catalog/admin/index.php and change the default login credentials.
You are finished with the installation.
Pre - Install File Permissions:
Directory Permission Level
/admin/includes chmod 755
/catalog/includes chmod 755
/admin/includes/configure.php chmod 777
/catalog/includes/configure.php chmod 777
/catalog/images chmod 777
Post - Install File Permissions:
Directory Permission Level
/admin/includes chmod 755
/catalog/includes chmod 755
/admin/includes/configure.php chmod 644
/catalog/includes/configure.php chmod 644
/catalog/images chmod 777