Richard Castera

Application Developer/Designer
  • Home
  • About
  • Projects

Migrating Magento to another server

Migrating the Magento platform to another server is relatively a simple task. I have detailed the steps below:

  1. From the admin, go to Configuration -> Web -> and change the (Unsecure and Secure) fields to {{base_url}}.
  2. From the admin, go to System -> Tools -> Backups and click on the backup button. This will create a backup of your database.
  3. Make a copy your Magento root.
  4. Move all data over to the new server.
  5. Restore the database on the new host.
  6. If you have a different username, password or database name. You’ll need to update that as well. You can find the file in (‘magento_root/app/etc/local.xml’) and make the required changes.
  7. Navigate to your Magento root, and delete all of the files and folders in, (i.e. /var/www/magento/var) except for the .htaccess file.

Hope this helps someone :)

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Don't forget to Subscribe and Follow!

Be sure to subscribe to the feed and follow me on Twitter for more insights and resources!

12 Responses to “Migrating Magento to another server”

  1. Comment #1 - Permalink
    Ben Maden
    10/25/2009

    Thanks Richard
    Concise and to the point which helped me get the job done just a little bit faster :)

  2. Comment #2 - Permalink
    Richard
    11/01/2009

    @Ben, Thanks!

  3. Comment #3 - Permalink
    hucks
    11/10/2009

    im not sure i dare to change the adress, last time i changed something in web i lost all acess to my store. and has to make new store, took me 3 weeks , make it all work again change language, mails new products etc. so can you verify its secure to do this, and tell me if i have understand right what i have to do ?

    here is my settings before/ after (i havent actual changed anything yet, only on the paper)

    actual settings.
    Unsecure
    Rod URL http://dahlsvarehus.com/magento/
    Base link-URL {{unsecure_base_url}}
    Base skin-URL {{unsecure_base_url}}skin/
    Base medie-URL {{unsecure_base_url}}media/
    Base JavaScript-URL {{unsecure_base_url}}js/
    Secure
    Rod URL http://dahlsvarehus.com/magento/
    Base link-URL {{secure_base_url}}
    Base skin-URL {{secure_base_url}}skin/
    Base medie-URL {{secure_base_url}}media/
    Base JavaScript-URL {{secure_base_url}}js/
    —-
    New Settings.
    Unsecure
    Rod URL {{base_url}}
    Base link-URL {{base_url}}
    Base skin-URL {{base_url}}
    Base medie-URL {{base_url}}
    Base JavaScript-URL {{base_url}}
    Secure
    Rod URL {{base_url}}
    Base link-URL {{base_url}}
    Base skin-URL {{base_url}}
    Base medie-URL {{base_url}}
    Base JavaScript-URL {{base_url}}
    –

    and i will first be in a month or two i change server,
    so do i have to change settings back . or do my site works with all set to {{base_url}}
    looks strange that i¨t can work if the urls is changed,

    best regards hucks.

  4. Comment #4 - Permalink
    ole dahl
    11/10/2009

    ??? deleted and no reply, have i done anything wrong ???

  5. Comment #5 - Permalink
    ole dahl
    11/10/2009

    never mind i let my new host moove my shop :)

  6. Comment #6 - Permalink
    Spenser
    12/11/2009

    I’m attempting all this again right now. My first attempt went horribly wrong…

  7. Comment #7 - Permalink
    Richard
    12/12/2009

    @hucks,

    That should work.

  8. Comment #8 - Permalink
    Fransnico
    02/09/2010

    This post is works. I just want to add one thing.
    If you migrate from from localhost or from other domain don’t forget to change it in your sql database. If you don’t the links will point to your old domain.
    To do it, just open your sql dump using any text editor. Find your old domain and replace it with your new domain. e.g (http://localhost/magento/) to (http://yournewdomain.com/).
    Now you can import the sql dump to your new database.

  9. Comment #9 - Permalink
    Richard
    02/16/2010

    @Fransnico, Thanks ;)

  10. Comment #10 - Permalink
    Dave
    06/07/2010

    I had issues with Perl when upgrading through Magento Connect when migrating over….are there any steps you’re supposed to take with perl.ini or anything along those lines?

  11. Comment #11 - Permalink
    Richard
    06/08/2010

    @Dave not that I know of.

  12. Comment #12 - Permalink
    maciana
    06/09/2010

    Hi,

    works, but there is one more thing you’ll need to do for the pear installer to work correctly: there are absolute paths in some of the downloader files which need to be adjusted, for more information check this article:
    http://www.magentocommerce.com/wiki/groups/227/downloader_upgrades_wrong_store/

It's Your turn

Click here to cancel reply.
You

CAPTCHA Image
CAPTCHA Audio
Refresh Image



About The Author

Richard is a Web Developer currently working for SankyNet. He is available for freelance work. Visit Shifting Ideas for inquiries. Thanks!
  • Premium Email Templates

    Social Profiles

  • Twitter
  • Facebook
  • LinkedIn
  • Digg
  • Google
  • GitHub

    Last Tweet

  • Beware the heat-seeking Nerf machine-gun coming to a cubicle near you http://om.ly/svHF #fb
  • Follow me
  • Archives

    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • September 2008
    • August 2008
    • July 2008
    • June 2008
  • Categories

    • AJAX
    • Apache
    • Books
    • Drupal
    • Ecommerce
    • Flash
    • Google
    • Javascript
    • jQuery
    • Magento
    • Marketing
    • Mootools
    • My Thoughts
    • MySQL
    • News
    • Photoshop
    • PHP
    • Prototype
    • SEO
    • Web Resources
    • Wordpress
  • My Favorites

    • 37 Signals
    • Andrew Warner
    • Chris Coyier
    • Chris Shiflett
    • Collis Ta'eed
    • Development Seed
    • Drupal
    • HubSpot
    • James Padolsey
    • Joel On Software
    • John Resig
    • jQuery
    • Kevin Rose
    • Life Hacker
    • Magento
    • Mashable
    • Matt Cutts
    • Matt Ryan
    • MySQL
    • NetTuts
    • Noupe
    • Photoshop Tutorials
    • PHP
    • Smashing Magazine
    • Tech Crunch
    • WoorkUp
    • Wordpress

2010 © Copyright. Richard Castera - All Rights Reserved.

Top