Caution:
This post was published in 2017 and may contain
information, techniques, or code examples that are no longer
current. Please double-check official documentation and
modern best practices before using anything from this article.
Moving an entire Magento site from one server to another or between hosts can be a daunting task for non-server administrators.
I’m going to try and expand this over time.
- Agree time frames, a day for file system sync, an hour for database update and DNS update.
- Content Freeze – no new images or content is added by Store owner, customers continue to place orders and create accounts.
- A copy of the site is downloaded to the new server via FTP
- A snapshot of the database is taken and used to test the site on the new server
- Database Freeze – no new orders, holding page on the front end, Admin Panel still accessible if required but no updates allowed.
- Export/import database
- Old Server: mysqldump -u YourUser -p YourDatabaseName > wantedsqlfile.sql
- New Server wget http://www.yourwebsite.com/wantedsqlfile.sql
- New Server: mysql -u YourUser -p YourDatabaseName < wanted.sql
- Copy over/configure your SSL for the new site
- Next-up is the DNS update to repoint the domain
- Export/import database
- Done
My Magento Expertise
If you are planning a new e‑commerce store, considering a platform upgrade or looking for ongoing Magento support, I can provide the expertise you need. Based in Northern Ireland and working with clients locally and internationally, I deliver solutions that help businesses grow.