Magento: Moving Your Magento Site To A New Server

If you have ever tried to move your entire magento directory and database to a new different server, you may have run into problems when trying to use the Magento Connect Manager to update any of the components of the website.

The reason for this is that inside of /downloads/ there is a whole bunch of files that are hard-coded with the paths for the original installation. This is totally fine if you want to keep a development copy on one server, and the live copy on another. But if you want to be able to update the live site – this won’t work.

You’ve got two options if you want to move your site to a new server and still be able to use Magento Connect:

Option 1: The Standard Way

This is probably the easiest way to do it for most people. This is what you are going to want to do:

  1. Upload a fresh copy of Magento onto the new server (don’t run the installer yet)
  2. Copy over your Themes/Templates, Skins, Images, and Custom Modules
  3. Dump the database from the original, and import the database to the new site
  4. Run the installer – and enter all the necessary info
  5. Go into the Magento Connect Manager, and install this extension: magento-core/Mage_All_Latest

You should then be good to go!

Option 2: The Package Extension Way

Unfortunately, I actually don’t know how to do this method yet – but according to Varien, this is a good way to do it. So, I believe what you *would* do is to import your database to the new server, install a fresh copy of Magento, and then using the Magento Connect Manager, I think you can bring over your package.

Hopefully I can get some time to look into how to do this.

This entry was posted in Magento. Bookmark the permalink.

4 Responses to Magento: Moving Your Magento Site To A New Server

  1. sakshi says:


    I have transferred the site from one server to another but i am getting a blank page. Site is not working. Any idea what am i doing wrong?

    • Josh Pratt says:

      sakshi – That’s like saying “I moved my car to the other end of the driveway, and now it won’t start. Why won’t it start?” There could be a whole host of things that could be wrong. Check your php error log and go from there.

  2. Richard says:

    This is an issue for me too, I’m developing a magento site as a replacement to an existing shop so the change over needs to be a bit more seamless! It would be nice if they’d make some tools available to enable an easy transfer from a development environment to a live site. Still, shouldn’t grumble give that its a great bit of software that’s cost me absolutely nothing so far!

  3. Sam Davis says:

    Have tried this myself – it’s not amazingly easy. Even moving an installation between different domains on the same dedicated server can prove a bit of a challenge. I would definitely recommend installing a fresh copy of Magento at the destination URL, and simply overwrite the theme folders which can be found in app and skin directories!