In my case both shared hosting and vps were bought from the same hosting provider "Godaddy"
1. Open you VPS Account
You will see
|
Click on Import an existing site, it will list you website hosted in your shared hosting, click that website and click on okay. |
|
It will take couple of hours when you be able to see Cpanel for your imported website.
2. Setting up DNS for newly imported website.
Leave this step at the end as we need to first fully test our website than we will forward visitors to newly imported website. OR better to create subdomain to test imported magento application.
3. Create an IP Address for imported website, by default the imported cpanel would be pointing to your old hosting ip address. to do that go to detail tab and click on IP section add an IP there, note down the newly create IP Address.
4. Changing IP address
|
Click on Manage Server |
|
Go to List Accounts and click on '+' sign |
|
Change IP Address Button |
|
Select newly created IP address from the drop and and click on Change button |
5. Check your magento application, <newly create ip>/~<username or directory>
it would be like http://166.62.xx.xx/~myusername/
You should be redirected to your old hosting account,
If your application already in production, I suggest you to create a new subdomain and test magento application there, to do that.
HOW TO CREATE SUBDOMAIN
After creating sub domain go to control panel of imported website, find phpMyAdmin browse database and update web/secure/base_url and web/unsecure/base_url to http://<subdomain>.mydomain.com in mage_core_config_data table
|
Changing this URL, you won't be redirected to your old domain <mydomain.com> |
6. Test your application using new.yourdomain.com or what ever is your subdomain name.
I had many issues moving my magento application to godaddy VPS server, please see below links if you have any related issues. When below issues are fixed, you will be ready to update mage_core_config_data to your domain. Change ip address in your DNS setting and point to new IP address. (changing ip will take couple of hours or minutes)
When installing magento application in VPS godaddy gives error message php-pdo-mysql-version-minimum v1 (detect: OFF)
Place Order button does not redirect to success page, though the order created.