Moving Magento from one host to another

This article was written for Magento 1.x and is kept for reference. Running Magento 1 in 2026 is a security risk — ask me about migrating to Magento 2 / Adobe Commerce.

Steps to move a Magento installation to a new host:

  1. Take a backup of your database.
  2. Take a backup of your files.
  3. Create a new database on the new host.
  4. Note the new database name, user and password.
  5. Update the connection details in app/etc/local.xml (Magento 1) or app/etc/env.php (Magento 2) with the new host, username, password and database name.
  6. Update the base URLs in the core_config_data table if the domain changes.
  7. Clear var/cache and var/session, then test the site and admin.
Vikram · MagentoWorks

Magento & Adobe Commerce specialist since 2011. I do Hyvä migrations, speed optimization, security patching and hacked-store cleanup.

Get a free store checkup

Related reading

← All 99 posts