How to Install OsCommerce on Centos/RHEL


INSTALL OsCommerce on Centos

Step 1: At First Configure LAMP, Disable selinux

Step 2: INSTALL osCommerce:
# cd /opt
# wget http://www.oscommerce.com/files/oscommerce-2.3.4.zip
# unzip oscommerce-2.3.4.zip
# mv oscommerce-2.3.4 /var/www/html/
# mv /var/www/html/oscommerce-2.3.4/ /var/www/html/oscommerce/
# chmod 777 /var/www/html/oscommerce/catalog/includes/configure.php
# chmod 777 /var/www/html/oscommerce/catalog/admin/includes/configure.php

Step 3: CREATE MYSQL DATABASE:

# mysql -u root -predhat

mysql> CREATE DATABASE oscommerce;
mysql> GRANT ALL PRIVILEGES on oscommerce.* to oscuser@localhost identified by 'your_password';
mysql> FLUSH PRIVILEGES;
mysql> \q

Step 4: Now open your favorite web browser and navigate to http://your_IP_address/oscommerce/catalog/install/index.php and follow the on-screen instructions.

Step 5: Post Installation Things:

# rm -rf /var/www/html/oscommerce/catalog/install
## Rename the Administration Tool directory located at /var/www/html/oscommerce/catalog/admin
## Set the permissions on /var/www/html/oscommerce/catalog/includes/configure.php to 644 (or 444 if this file is still writable).
## Set the permissions on /var/www/html/oscommerce/catalog/admin/includes/configure.php to 644 (or 444 if this file is still writable).
## Review the directory permissions on the Administration Tool -> Tools -> Security Directory Permissions page.
## The Administration Tool should be further protected using htaccess/htpasswd and can be set-up within the Configuration -> Administrators page.

---- DONE,Thanks ----