Here I will outline the easiest process to move your Magento store to a different server/hosting. To perform the move, you should have access to the store files and database. Step 1: Clean var directory of your current magento installation to free some space and copy all magento files to a temp directory or directly to the new server. If you want to speed up the process, you should compress all files and extract them on the target server. Also create a dump of your current database and move it to your new server. Step 2: Once the files are copied, you should set the correct permissions for magento files and folders: var and contents should have permissions “777” media and contents should have permissions “777” app/etc and contents should have permissions “777” Restore your old database’s dump into a new database table you are going to use for the new store. Step 3: Now let’s set the new database connection settings in the file /app/etc/local.xml:
            <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
You need to replace db_prefix db_host db_user db_password etc.. with your values. Step 4: Open a db manager, such as PHPMyAdmin or similar and run the query below:
UPDATE core_config_data SET value="" WHERE path="web/unsecure/base_url";
UPDATE core_config_data SET value="" WHERE path="web/secure/base_url"
Where “” is a new server domain name. That’s all. Enjoy your old magento store on a new host. Also if you didn’t clean out your var folder in the previous steps – you should delete the folder var/cache now.