How to Move OpenCart Website from Localhost to Server?

OpenCart is one of the simplest and loveliest e-commerce platforms to build an online store. OpenCart offers you an ‘easy-to-work-with’ code-base with which you can get an e-Commerce site online, quickly.

Move OpenCart Website from Local to a Live Server

  1. Export a database. Navigate to your local phpmyadmin tool. Click on Export button and then on Go.
  2. Now navigate to your site root folder and make a zip archive out of its content.
  3. Let’s upload the zip  to the root folder on the live server.
    Navigate to the cPanel, click on the Upload button, find the zip archive and wait until it is uploaded. Extract the files then.
    Open your store content via File Manager or FTP access. Upload zip archive and wait until it is uploaded. Extract the files then.
  4. Navigate to your phpmyadmin tool on the live server and import exported SQL file to a new database.
  5.  Update the configuration files config.php and admin/config.php to reflect your new domain path. 
    Make following changes in both config.php and admin/config.php files
    1. In the upper section, you need to replace the current path with your new site URL
    2. In the middle section, you need to replace the path with the path on your server. Contact your hosting company for the full path to your public folder.
    3. In the bottom section, you need to insert your new database details.
    4. Save changes.

Check your site now. If you face any problems or need our professional services, please email us at [email protected]

Join our Newsletter

Never miss the latest offers, voucher codes and useful articles delivered weekly in your inbox.