Hi everybody, today I come with another tips to move Opencart Site From Localhost to Live Server. I assume, you build a OpenCart site in your local server. Now you transfer your local OpenCartsite to live server. You would need to have a FTP program to connect your local system to live server and know how to use ftp, so you can connect your local system to live server, upload your content to the live site. For ftp you can use filezilla. It is a free software. Now I start the process.

Move Opencart Site step by step process is given below





Step 1: Export your OpenCart site database.
Now go to http://localhost/phpmyadmin and select your OpenCart database. Next, click on the “Export” button from the menu bar.
Screenshot_1

In the Export Method option choose “Quick – display only the minimal options” and select format “SQL” and click on “Go” button. It will download your whole database. We need this file for later use.
Screenshot_2

Step 2: Uploading local OpenCart site to live server
Now open your ftp sotware (For me it is filezile), put your live site hostname, username and password and hit “Quickconnect”—this is for filezilla.
Screenshot_3

Now go to your live server root directory, for me it is “public_html”. It varies on server to server. So you have to know your root directory. Now left side of your filezilla you have to select your local OpenCart site and right side of your filezilla your live server root folder. Now select all files from left site of filezilla and right click on files and click upload.
Screenshot_4

It takes time so do not worry. Leave it, it will upload all files from local to live server.

Step 3: Create Mysql Database on Live Site
While your FTP client is uploading your OpenCart files, you can spend this time on importing your database to the live server. Log in to your cPanel dashboard and click on the MySQL databases icon which can be found in the databases section.
Screenshot_5

Now create a database(put any name here)
Screenshot_6

It will open an window, Click on “Go back”.
Step 4: Importing Opencart Database on Live Site
Go to your cPanel dashboard, scroll down to the databases section and click on phpMyAdmin.
Screenshot_7

This will take you to phpMyAdmin where you want to click on the database you created earlier. phpMyAdmin will show your new database with no tables. Click on the Import tab in the top menu. On the import page, click on choose file button and then select the database file you saved in step 1. Lastly, press the Go button at the bottom of the page. phpMyadmin will now import your Opencart database.
Screenshot_8

Step 5: Now database import is over. I assume your file transfer is over. Now open config.php from live site root folder.
Screenshot_9

Here all the url, path and database are written. Change all content according to your server/image given below. Here you have to know the “Home Directoy”. You can get this from you Cpanel left sidebar under “Stats”. Home directory like this /home/abhijit/.
Screenshot_10

After changing all data, save the file and update it in filezilla.
Screenshot_11

Now click “admin” folder and open config.php and change according to above image given below. After changing all data, save the file and update it in filezilla. Now you are done. That’s all, hopefully your live site will be up and running by now.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Move Opencart Site From Localhost to Live Server
Tagged on:     
  • http://www.facebook.com/profile.php?id=100003469725115 Medhat

    Warning: require_once(home/test/public_html/system/startup.php) [function.require-once]: faield to open stream: No such file or directory in /home/test/public_html/admin/index.php on line 19Fatal error: require_once() [function.require]: Failed opening required ‘home/test/public_html/system/startup.php’ (include_path=’.:/usr/lib/php’) in /home/test/public_html/admin/index.php on line 19I also have this problem. please help me to solve this problem?

    • http://abhijitpal.in Abhijit

      Update your root config.php and admin/config.php with your current server details. Your problems will be solved