Q: How to move existing Magento store to Digitalocean.

Posted August 22, 2015 2.6k views
DigitalOcean 1-Click Apps MarketplaceDeployment

How would i go about transferring my Magento store from Godaddy to Digital ocean?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

In order to get your Magento store moved between hosts, you first need to backup your database using a command like:

mysqldump -h HOST -u USER -p DATABASENAME > FILENAME.sql

Then, tar archive your the files in your Magento directory with:

tar -czif ARCHIVENAME.tar.gz

Download this archive locally, then upload it to your DigitalOcean server, and unarchive

tar -xzif ARCHIVENAME.tar.gz

Next adjust your settings in the app/etc/local.xml file to match your new server

The section of the file you’ll be adjusting looks like


Upload your MySQL backup to the new server, and then restore it with this command:


The last step is to clear your Magento cache. Use Magento admin panel > System > Cache management or delete the contents of the var/cache and var/session folders in your Magento directory.