How to transfer your opencart shop to live server

This is perhaps a little tricky for new bie who is new to OpenCart (OC). Please follow this steps.

Step1: If you are using XAMPP €“ please upload all your local files from the htdocs/your_shop_dir to your live server www or public_html folder. Or if you want to upload in subdomain €“ please create one then upload all files there.

Step2: Just change the path in both config.php (at _root & inside the admin folder) €“ make sure you have mentioned all DIR paths correctly. And put your DB info there. Nothing needed to change anywhere.

Step3: Make sure that you had deleted ( or renamed ) the install DIR.

Step4: Run your site in web browser. Enjoy!

Your Config.php file will look like below. Please open it by your favorite editor.

define('HTTP_SERVER', '');
define('HTTP_CATALOG', '');
define('HTTP_IMAGE', '');

define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

// DIR
define('DIR_APPLICATION', '/home/your_hosting/public_html/admin/');
define('DIR_SYSTEM', '/home/your_hosting/public_html/system/');
define('DIR_DATABASE', '/home/your_hosting/public_html/system/database/');
define('DIR_LANGUAGE', '/home/your_hosting/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/your_hosting/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/your_hosting/public_html/system/config/');
define('DIR_IMAGE', '/home/your_hosting/public_html/image/');
define('DIR_CACHE', '/home/your_hosting/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/your_hosting/public_html/download/');
define('DIR_LOGS', '/home/your_hosting/public_html/system/logs/');
define('DIR_CATALOG', '/home/your_hosting/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'your_hosting_database_username');
define('DB_PASSWORD', 'your_hosting_database_password');
define('DB_DATABASE', 'your_hosting_database');
define('DB_PREFIX', '');

Note: €œ/home/your_hosting/public_html€ €“ here your_hosting refers to your cpanel username. If you like to host it in a subdomain then the path will be like below:



I hope it will help.