Categories

Featured templates

OpenCart 2.x. How to move website from localhost to live server

Rating: 5.0/5. From 3 votes.
Please wait...

Hello! This tutorial will guide you on how to move OpenCart template from localhost to the live server.

  1. First of all, we need to export a database. Navigate to your local phpmyadmin tool. Click on Export button and then on Go.

    OpenCart 2.x. How to move website from localhost to live server_1

    OpenCart 2.x. How to move website from localhost to live server_2

  2. Now navigate to your site root folder and make a zip archive out of its content.

    OpenCart 2.x. How to move website from localhost to live server_3
  3. Let’s upload the archive to the root folder on the live server. Navigate to the cPanel, click on the Upload button, find the needed archive and wait until it is uploaded. Extract the files then.

    OpenCart 2.x. How to move website from localhost to live server_4

    OpenCart 2.x. How to move website from localhost to live server_5

  4. Now we can import our newly exported SQL file to a new database. Navigate to your phpmyadmin tool on the live server.

  5. Click on Import, choose the SQL file and click on Go.

  6. At this point we need to edit two files which are config.php in the root folder and config.php in the admin folder.

    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, you can see it above.

    3. In the bottom section you need to insert your new database details.

    OpenCart 2.x. How to move website from localhost to live server_6
  7. Save changes and navigate to the admin folder to edit config.php file.

  8. Make the same changes to it.

  9. Save changes and check your site now.

This is the end of the tutorial. Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to move website from localhost to live server
This entry was posted in OpenCart Tutorials and tagged live server, localhost, move website, Opencart2, upload. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket