How do I migrate my website from shared-hosting to an existing VPS?
First, please know that Brownrice will migrate one customer site per service free of charge for new customers. We're very good at this and happy to do it.
However, if you are migrating multiple sites on your own, say, into a VPS or dedicated server, these are the instructions that we use:
Migrating Multiple Sites
Database Migration:
- Connect to current site via FTP and look at the wp-config.php file to see your database credentials: database name, username, password. Write these down/paste them into notepad.
- Log into the phpMyAdmin for the old site via the Brownrice Dashboard, and take an export of the database, using these instructions: How do I export or backup a database?
- Log into the phpMyadmin for the new VPS,
- Click 'Users' from the menu bar, then click 'Add user'
- Enter the exact same username and password, and select Localhost for Host
- Check 'Create database with same name and grant all priveleges' under 'Database for User'.
- Click 'Go' on the bottom-right.
- Click the name of your new database on the left.
- Click 'Import' from the menu-bar.
- Choose File, and upload the .sql file you downloaded in step 2.
- Click Go
File Migration - Setup a new site:
- Download all your site files (everything inside /home/domains/yourwebsitename.com/docs/) via FTP.
- Log in to your Dashboard
- Navigate to VPS HOSTING
- Select your VPS: yourvpsname.com
-> Click Manage (green button) - Go to the Web Sites
- Click Add New Website or Subdomain to this VPS (green button)
- Enter the full website name: yourwebsitename.com, and click Add Site.
File Migration - Create a new FTP/SSH User:
- o to FTP/SSH Users or SSH Users (depending on the Generation of your VPS)
or - Click Add User (green button)
or - Select a username and password
- Save
File Migration - Use FTP/SSH User to upload files to the new server:
- Connect via FTP to the VPS (use the IP address, shown next to 'Assigned IPs' in the VPS details, as the hostname).
- Upload all your site files to /home/domains/yourwebsitename.com/public/
- Log in to your Dashboard
- Navigate to VPS HOSTING
- Select your VPS: yourvpsname.com
-> Click Manage (green button) - Go to the Web Sites
- Click the Reset link to reset file-permissions
- After that everything should be in place. You can take a look at the site on the VPS by adding the following lines to your /etc/hosts file on your local machine (google for instructions for your local machine OS):
{IP address of the VPS} yourwebsitename.com {IP address of the VPS} www.yourwebsitename.com
- Once you've verified the site looks good, you can update the DNS A record to point to thenew IP address, and the site will be live on the VPS!
Contact us to have us remove the shared-hosting account.
Tags: migrate, migration, shared hosting, vps, website