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 WordPress website from old Bluehost VPS account to the newly created Bluehost VPS account and restore WordPress website on the new Bluehost VPS account. This is happened when i find new VPS account has discount.

1. General Guide Line.

Below is the steps to achieve this goal.

  1. Create new BlueHost VPS account.
  2. Create different CPanel for each website domain in 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 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 shutdown the website service in minutes.

2. Create New Bluehost VPS Account.

  1. Go to BlueHost VPS hosting page and select a plan.
    bluehost vps hosting plan page
  2. In the next page, you can either create a new domain or enter your existing domain name, then click Next button. The new domain is free for the first year.
  3. You should provide some personal information in the next page. Then the account will be created.
  4. When the account create complete, you can login to the VPS server in a terminal use command ssh [email protected]<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 create 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 in left navigation page, then you can see all CPanel account list in 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 domain can use one ip address or different ip address.
  5. Click the Create a New Account button to go to create 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 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 old BlueHost VPS account. The backup file is created with 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 above folder. The unzip command is unzip -d /home/<domain_account_username_folder>/public_html/ specify the target folder. If you do not install unzip then run 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 MySQL Databases link in DATABASES section.
    bluehost vps website cpanel admin site
  3. Then create a new MySQL database, add a new MySQL database user ( you had better use 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 command mysql -p -u user_name database_name < file.sql in terminal, we will write another article to show it more detail.

6. Un-assign Domain From Old Bluehost Account.

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

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

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

8. Change Domain DNS Record.

  1. Login BlueHost control panel from BlueHost home page.
  2. Click domains.
  3. Select one domain.
  4. Click Domain —> Manage DNS records in DNS Zone Editor section.
    bluehost un-assign domain and zone editor
  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 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.

After 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. To fix this issue, you can read article How To Avoid Download Web Page Instead Of Display In WordPress.

11. Fix Access WordPress Admin Page Error.

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

0 0 votes
Article Rating
Notify of

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

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x