The installation is quite easy and straightforward and can be done by following the steps described in this article.
To install and run osCommerce on your server you need to have PHP version 4+ and MySQL version 3+ installed on your Linux VPS .
You can easily find out your MySQL version by executing the ‘mysql -V‘ command and your PHP version by executing ‘php -v‘. If your server meets the osCommerce requirements you can start with the installation.
Create a MySQL database for your osCommerce installation:
echo "CREATE DATABASE oscommercedb;" | mysql -u root -p echo "CREATE USER 'oscommerceuser'@'localhost' IDENTIFIED BY 'PASSWORD';" | mysql -u root -p echo "GRANT ALL PRIVILEGES ON oscommercedb.* TO 'oscommerceuser'@'localhost';" | mysql -u root -p echo "FLUSH PRIVILEGES;" | mysql -u root -p
Don’t forget to change ‘PASSWORD’ with a strong password.
The current stable version of os osCommerce is 2.3.3. Go to osCommerce’s official website, download the latest stable osCommerce zip file and unzip it.
# unzip oscommerce-2.3.3.zip
Once it is unzipped, move the ‘/catalog’ directory to the document root directory. To find your document root directory execute:
# grep -i '^documentroot' /etc/httpd/conf/httpd.conf DocumentRoot "/var/www/html" # mv oscommerce-2.3.3/catalog /var/www/html
To make your web server able to save the installation parameters to its configuration files, change the owner of the following files:
# chown apache: /var/www/html/catalog/includes/configure.php # chown apache: /var/www/html/catalog/admin/includes/configure.php
With this step the installation from the command line is done. Now point your browser to http://YOURDOMAIN.TLD/catalog and follow the on-screen instructions. After you complete the web-based installation you will have a fully functional e-commerce and online store management system installed on your virtual server.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install this for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks