Skip to main content

How to deploy Opencart application on Hostgator or any Hosting site

Opencart hosting on shared hosting/ Hostgator

Opencart is a PHP open source e-Commerce solution.

Building an eCommerce application using Opencart is easy but hosting an Opencart application on any shared hosting site such as hostgator requires some little modification to your config files.

On your localhost, you would have PHPMyAdmin and PHP configured on your system. You can easily build application and run it on the browser easily.

In case of hosting it on shared hosting you can't just upload your application files to the public_html directory of shared hosting. It requires to configure Opencart config file for database and directories setting.

I will provide you awesome trick to upload and run Opencart application without much settings and configuration. I have tried it and well tested. Just follow these below steps:

Step 1: Copy your Opencart application to any other directory (Lets say /home/opencart-demo). (Just for your backup because we are going to change some config files).

Step 2: Empty the opencart-demo/config.php file and in opencart-demo/admin/config.php.

Step 3: Copy the install folder from the Opencart installation package to opencart-demo/ (If you have deleted it just download the new one but same version).

Step 4: Export your database (in .sql format) and place the database file to install directory (opencart-demo/install).

Step 5: Delete existing opencart.sql and rename the exported sql file to opencart.sql.

Step 6: Now create empty database in the cPanel on your hosting site.

Step 7: Upload your application to public_html directory of your hosting through FTP.

Step 8: Now goto the browser and type domain (for example: www.opencart-demo/install) it will install your application with updated database and code. Just follow the instructions as you would have done with local installation.



Comments

  1. To deploy an OpenCart application on italy dedicated server HostGator or any hosting site, upload the OpenCart files to your hosting account using FTP, then create a MySQL database and configure the config.php and admin/config.php files with the database details. Finally, run the OpenCart installation script by visiting your domain.

    ReplyDelete

Post a Comment

Popular posts from this blog

Add JS to the bottom of the page in Drupal 7

How to add JS at bottom of a particular page in Drupal 7 Step 1: Get the page id. In case of front page "is_front"  Step 2: In template.php file of your theme add the below code : function illume_preprocess_page(&$variables) { if ($variables['is_front']) { drupal_add_js(path_to_theme().'/js/util.js', array('type' => 'file', 'scope' => 'footer')); drupal_add_js(path_to_theme().'/js/main.js', array('type' => 'file', 'scope' => 'footer')); drupal_add_js(path_to_theme().'/js/slideimage.js', array('type' => 'file', 'scope' => 'footer')); $variables['bottom_scripts'] = drupal_get_js(); } } This way you can add JS file using drupal_add_js() and define scope as footer. Step 3: Now you can use bottom_script variable to the page tpl file where you want to add JS print $bottom_scripts;

Main menu dropdown parent item clickable in Drupal 8 using Bootstrap 4

 Edit menu--main.html.twig template file {# /**  * @file  * Bootstrap Barrio's override to display a menu.  *  * Available variables:  * - menu_name: The machine name of the menu.  * - items: A nested list of menu items. Each menu item contains:  *   - attributes: HTML attributes for the menu item.  *   - below: The menu item child items.  *   - title: The menu link title.  *   - url: The menu link url, instance of \Drupal\Core\Url  *   - localized_options: Menu link localized options.  *   - is_expanded: TRUE if the link has visible children within the current  *     menu tree.  *   - is_collapsed: TRUE if the link has children within the current menu tree  *     that are not currently visible.  *   - in_active_trail: TRUE if the link is in the active trail.  */ #} {% import _self as menus...

Use Case Diagram for Online Book Store