Move Magento from one server to another

Move Magento from one server to another

1. First of all take Back up your files. ( Go to your test site admin backend and refresh Cache by System > Cache Management. Then download and save the whole Magento shop root directory via File Manager or FTP tools )

2. Export the Magento Database ( Enter your control panel “phpmyadmin” database area and EXPORT your Magento database into “data.sql.zip” format )

3. Move all Magento files to the new server. ( Upload the root directory (all the files) of your Magento backup taken on step 1 into the new server. )

4. Import the database to the new server. ( Go to your new host account phpmyadmin and create a new database, database user, and database user password. Then open the database sql file saved in step 2 with a text editor and edit the database name mention into the new database name, save it. Then import the “data.sql.zip “database backup saved in step 2 into this new database. )

5. Update the database details file. ( Next step is to edit the database details file. To do this go to Magento live site folder, find out “app/etc/local.xml” file and enter the latest Database details which are created in step 4. )

6. Modify the base URL database table. ( Next is to replace the old server domain name with the new domain name. For this go to your new server phpmyadmin magento database and modify core_config_data table as shown below.
a.web/unsecure/base_url > http://www.example.com/
a.web/secure/base_url > http://www.example.com/ )

7. Refresh cache and Reindex Data. ( Go to your site’s admin panel System > Cache management > Select all & disable cache management. Then navigate through System—>Index Management. Select fields in Status — ‘REINDEX REQUIRED’, then choose ‘Reindex Data’ from drop-down and click Submit or delete all the files in “var/session” and “/var/cache” folders of the new site. )


Leave a Reply