How To Move Website Content From Old BlueHost VPS Account To New VPS Account

In this article, I will tell you how to create a new Bluehost VPS account, and how to move a WordPress website from the old Bluehost VPS account to the newly created Bluehost VPS account and restore the WordPress website on the new Bluehost VPS account. This happens when I find a new VPS account that has a discount.

1. General Guide Line.

Below are the steps to achieve this goal.

  1. Create a new BlueHost VPS account.
  2. Create a different CPanel for each website domain in the new VPS account WHM.
  3. Download website WordPress backup file and restore it to new VPS domain folder.
  4. Create MySQL database, import SQL data to the database, and edit database configuration data in each WordPress website wp-config.php file.
  5. Un-assign domain from old VPS account, and assign the domain to a related folder in the new VPS account.
  6. Change domain DNS settings, and Ezoic DNS settings.
  7. That’s all. In this way, only reassign domain will shut down the website service in minutes.

2. Create New Bluehost VPS Account.

  1. Go to the Bluehost VPS hosting page and select a plan.
  2. On the next page, you can either create a new domain or enter your existing domain name, then click the Next button. The new domain is free for the first year.
  3. You should provide some personal information on the next page. Then the account will be created.
  4. When the create account process complete, you can log in to the VPS server in a terminal use the command ssh root@<your-vps-server-ip>.
  5. You can find a folder is created in /home directory, this folder is just created for the domain you select or entered.
  6. After creating the account, you can access the WHM admin page use URL HTTP://<your-vps-server-ip>:<whm-port>.

3. Create Different CPanel For Each Domain In WHM

  1. Login to the WHM admin page with url https://<your-vps-server-ip>:<whm-port> use root user.
  2. Click Account Information —> List Accounts menu on the left navigation pane, then you can see all CPanel account list on the right page.
  3. Each CPanel account includes domain name, IP address, user name, etc.
  4. You can click the + icon at the beginning of the account to expand it. Then change the domain used IP there. All the domains can use one IP address or different IP addresses.
  5. Click the Create a New Account button to go to create a new account page.
  6. Input the account domain, username, password, etc.
  7. In the DNS Settings section, check the checkbox before Use the nameservers specified at the Domain’s Registrar. (Ignore locally specified nameservers.).
  8. Click Create button, then it will create a new account.
  9. Each account has it’s own CPanel admin site, you can use the account username and password in the domain CPanel admin site login page HTTPS://<your-vps-server-ip>:<cpanel-port> to login.
  10. You can also click the CP icon in the List Accounts page to go to each account-related CPanel admin site.
  11. Each account will also create one folder in the VPS server /home directory, the folder name is just the account username.

4. Download Website WordPress Backup File And Restore It To New VPS Server Account Domain Folder

  1. Download each WordPress website backup file from the old BlueHost VPS account. The backup file is created with the WordPress plugin BackWPup.
  2. Upload above backup file to related folder ( for example : /home/<domain_account_username_folder>/public_html/ ) in new Bluehost VPS account.
  3. Unzip the compressed file in the above folder. The unzip command is unzip -d /home/<domain_account_username_folder>/public_html/ file.zip-d specify the target folder. If you do not install unzip then run the command yum install unzip to install it.

5. Create MySQL Database Use Bluehost CPanel —> database tools —> MySQL Databases.

  1. Login to the domain website CPanel admin site from WHM.
  2. Then Click the MySQL Databases link in the DATABASES section.
  3. Then create a new MySQL database, add a new MySQL database user ( you had better use the same database password stored in WordPress wp-config.php file), assign all privileges to the new user on the database.
  4. Edit the file /home/<domain_account_username_folder>/public_html/wp-config.php. Replace DB_NAME, DB_USER‘s value with above database name and user name.
  5. Click phpMyAdmin link in CPanel DATABASES section to open phpMyAdmin page, then import the WordPress website database data from the .sql backup file. The .sql backup file should be found in folder /home/<domain_account_username_folder>/public_html/.
  6. If the .sql backup file is too large ( bigger than 50MiB), then we should import it with the command mysql -p -u user_name database_name < file.sql in a terminal, we will write another article to show how to use it in more detail.

6. Un-assign Domain From Old Bluehost Account.

  1. Go to the BlueHost home page and click the Login link at the top right corner.
  2. Input your old VPS account primary domain and password to log in.
  3. Click domains link at top menu bar after login.
  4. Click one domain in the bottom left, then you can click the Un-assign link on the bottom right cPanel type area to un-assign it.

7. Assign Domain To New Bluehost Account As Parked Domain.

  1. Go to the BlueHost home page, click the Login link at the top right corner.
  2. Input your new VPS account primary domain name and password to log in.
  3. Click domains —> assign menu item at top menu bar.
  4. Select an account-owned domain from the list or input a new domain.
  5. Check the Parked Domain radio button in step3.
  6. Click the assign this domain button to assign it.

8. Change Domain DNS Record.

  1. Login BlueHost control panel from the BlueHost home page.
  2. Click domains.
  3. Select one domain.
  4. Click Domain —> Manage DNS records in DNS Zone Editor section.
  5. Then you can change the DNS record there (change DNS IP address).

9. Change Ezoic DNS Settings.

  1. Login to Ezoic admin page.
  2. Click Settings menu item at the top menu bar, select one domain, then scroll down to DNS SETTINGS area.
  3. Update the domain IP address in A record.
  4. You do not need to change IP address in Cloudflare, because Ezoic will do it for you in Cloudflare automatically.
  5. That’s all.

10. Fix Download Home Page When Browse Domain Error.

  1. After the above steps, the WordPress website has been restored successfully. But when you browse it, you will find it will download the index page instead of display it.
  2. To fix this issue, you can read the article How To Avoid Download Web Page Instead Of Display In WordPress.

11. Fix Access WordPress Admin Page Error.

  1. When I browse the WordPress website admin page, I meet an error message like There has been a critical error on your website. Please check your site admin email inbox for instructions. This error blocks me from access the WordPress admin page.
  2. Usually, this error is because of a PHP memory issue. So you should increase PHP memory in WHM. You can read the article How To Increase PHP Memory In WHM to learn more.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.