Install osCommerce on a CentOS Linux

oscommerceIn this tutorial we will show you how to install osCommerce on a CentOS VPS. Open Source Commerce (osCommerce) is a complete self-hosted online store solution that contains both a catalog frontend and an administration tool backend which can be easily installed and configured through a web-based installation procedure.

It can be used on any web server with PHP and MySQL installed and it allows you to setup and maintain e-stores very easily with almost no effort.

Before you start the installation, please make sure that you have LAMP stack installed on your server. If not, follow our excellent tutorial about installing LAMP (Linux Apache, MariaDB & PHP) on a CentOS VPS

REQUIREMENTS

We are using our 1 VPS hosting plan for this tutorial.

UPDATE THE SYSTEM

Login to your server as user ‘root’ and make sure your Linux VPS is fully up-to-date:

# ssh root@hostname
# yum update

INSTALL osCommerce

Let’s navigate to a directory where we will download osCommerce. For the purposes of this tutorial we will use the opt directory.

# cd /opt

Install wget and unzip:

# yum install wget unzip

The next thing to do is to download the latest stable version of osCommerce which is 2.3.4 during the writing of this article. Issue the following command:

# wget http://www.oscommerce.com/files/oscommerce-2.3.4.zip

Unzip the installation file:

# unzip oscommerce-2.3.4.zip

Move the installation directory into your Apache web server’s document root:

# mv oscommerce-2.3.4 /var/www/html/

You can rename the directory according to your needs. In our case we will change the name to oscommerce.

# mv /var/www/html/oscommerce-2.3.4/ /var/www/html/oscommerce/

To make your web server able to save the installation parameters to its configuration files, you need to give appropriate permissions to the following files. Execute the following commands:

# chmod 777 /var/www/html/oscommerce/catalog/includes/configure.php
# chmod 777 /var/www/html/oscommerce/catalog/admin/includes/configure.php

CREATE MYSQL DATABASE

Enter MySQL as root:

# mysql -u root -p

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

With this step the installation procedure from the command line is done.
Now open your favorite web browser and navigate to http://your_IP_address/oscommerce/catalog/install/index.php and follow the on-screen instructions.

Please note that it is recommended to follow the post-installation steps after the completion of the installation procedure to secure your osCommerce Online Merchant online store. One of the steps is to delete the installation files. You can do that with the following commands:

# rm /var/www/html/oscommerce/catalog/install
# rm -rf /var/www/html/oscommerce/catalog/

After you complete the web-based installation and follow the post-installation steps you will have a fully functional e-commerce and online store management system installed on your virtual server.

Install osCommerce on a CentOS Linux
Written by: AFRIDA YANTI
Reting: 4.9


Cheap Best Hosting is a leading provider of web hosting, shared hosting, resellers hosting, virtual private servers, vps hosting, dedicated servers and domain name registration.


Follow me on Google+ | Twitter | Facebook | Linkedin | YouTube

Share This Post

Recent Articles

Leave a Reply

© 2017 Cheap Best Hosting Blog. All rights reserved. · Entries RSS · Comments RSS
Hosting By Cheap Best Hosting