How to install osCommerce - An online store-management software
To install osCommerce in CentOS 7
osCommerce is an open source e-Commerce and online store-management application. It is written in PHP and MySQL. It is used for opening and maintaining the e-stores. Installation of osCommerce in CentOS 7 is explained in this manual.
Prerequisites
It requires LAMP setup for the proper functioning of the software. To know how to install LAMP visit the following link,
https://www.linuxhelp.com/install-lamp-fedora-22/
Once Mariadb is installed, create a database and user by using the following command.
[root@linuxhelp1 ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with or g. Your MariaDB connection id is 10 Server version: 5.5.47-MariaDB MariaDB Server Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. MariaDB [(none)]> create database oscommercedb Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> create user user1@localhost identified by ' linuxc' Query OK, 0 rows affected (0.10 sec) MariaDB [(none)]> grant all privileges on oscommercedb.* to user1@localhost Query OK, 0 rows affected (0.09 sec) MariaDB [(none)]> flush privileges Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Bye
To install osCommerce
Download the osCommerce package from its official site to /tmp location.
[root@linuxhelp1 ~]# cd /tmp
[root@linuxhelp1 tmp]# wget http://www.oscommerce.com/files/oscommerce-2.3.4.zip
--2016-07-30 00:59:45-- http://www.oscommerce.com/files/oscommerce-2.3.4.zip
Resolving www.oscommerce.com (www.oscommerce.com)... 46.4.20.81
Connecting to www.oscommerce.com (www.oscommerce.com)|46.4.20.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9664707 (9.2M) [application/zip]
Saving to: ‘ oscommerce-2.3.4.zip’
100%[=============================================================================================> ] 96,64,707 306KB/s in 56s
2016-07-30 01:00:41 (170 KB/s) - ‘ oscommerce-2.3.4.zip’ saved [9664707/9664707]
Unfold the downloaded package by running the following command.
[root@linuxhelp1 tmp]# unzip oscommerce-2.3.4.zip
Archive: oscommerce-2.3.4.zip
creating: oscommerce-2.3.4/
creating: oscommerce-2.3.4/catalog/
inflating: oscommerce-2.3.4/catalog/.htaccess
inflating: oscommerce-2.3.4/catalog/account.php
inflating: oscommerce-2.3.4/catalog/account_edit.php
.
.
.
inflating: oscommerce-2.3.4/docs/addons/braintree.pdf
inflating: oscommerce-2.3.4/docs/addons/paypal.pdf
inflating: oscommerce-2.3.4/docs/addons/sagepay.pdf
inflating: oscommerce-2.3.4/docs/addons/stripe.pdf
inflating: oscommerce-2.3.4/docs/addons/worldpay.pdf
inflating: oscommerce-2.3.4/docs/database_schema.pdf
inflating: oscommerce-2.3.4/docs/documentation.pdf
inflating: oscommerce-2.3.4/docs/LICENSE
inflating: oscommerce-2.3.4/docs/release_notes.pdf
inflating: oscommerce-2.3.4/docs/STANDARD
inflating: oscommerce-2.3.4/README.md
Move the contents to the root directory.
[root@linuxhelp1 tmp]# cd oscommerce-2.3.4/
[root@linuxhelp1 oscommerce-2.3.4]# mv * /var/www/html/
Change the ownership for the directory.
[root@linuxhelp1 oscommerce-2.3.4]# chmod 777 /var/www/html/catalog/includes/configure.php
[root@linuxhelp1 oscommerce-2.3.4]# chmod 777 /var/www/html/catalog/admin/configuration.php
Open a browser and navigate to http://< IP_address> /catalog/install/
Enter your database details and click continue.
Then give the details of your online store like, web address and its location on the server.
Fill your online store settings and click continue.
Click online store to start your online store.
To view the Administration wizard, click Administration Tool.
Login using the admin credentials.
chmod 777 /var/www/html/catalog/includes/configure.php