Migrating A WordPress Site between Accounts



In this guide we will be walking you through the steps you should take to migrate a WordPress website between two different hosting accounts with minimal downtime.

The later steps of this guide can also be followed to guide you through moving a development website to a live website.



Steps To Migrate The Live Site To An Intermediate Testing Domain.

Exporting The Database & Website Content From The Existing Domain.

  1. Navigate to the Databases > MySQL > MySQL DBs.
  2. Select the database being used with your WordPress website.
  3. Select the Built in phpMyAdmin control panel link.
  4. Login to the database using the Database Username & Database Password.
  5. Select the database from the left hand side.
  6. Select the Export tab from the top bar.
  7. Press the Go button.
  8. Connect to your domain via FTP.
  9. Open the domain folder and drag the contents into a folder on your local PC.

Importing The Database & Website Content To A Third Level Domain.

  1. Add a third level domain to the account you wish to move the domain to.
  2. Set the PHP version to 5.2 or later.
  3. Connect to the third level domain via FTP.
  4. Remove the default files that are automatically created.
  5. Upload the contents you made a copy of in step 9.
  6. Create a database, and a user with long password.
  7. Select the newly created database.
  8. Select the Built in phpMyAdmin control panel link.
  9. Login to the database using the Database Username & Database Password.
  10. Select the database from the left hand side.
  11. Press the Import tab at the top of the page.
  12. Press the Choose File button and select the database export you created in step 7, then click Go.
  13. Edit the wp-config file via FTP to reflect the newly created database name, user, and password.
  14. Insert the following lines of code with “yourdomain.pipeten.co.uk” replaced with the relevant third level domain you created.
  15. define('WP_HOME','http://yourdomain.pipeten.co.uk');
    define('WP_SITEURL','http://yourdomain.pipeten.co.uk');
    

  16. From your browser, visit the third level domain to ensure the website still functions correctly.

Steps to Migrate From An Intermediate Testing Domain To A Live Site

  1. If moving the website from one account to another, select the delete icon next to the existing domain.

  2. Agree to the removal of the domain from your control panel.
  3. Select Submit. For the mean time do not click the remove web content box for disaster purposes.
  4. Add the domain to the new hosting account.
  5. Remove the default files that are automatically created.
  6. Connect to your account via FTP, and move the web contents from the third level domain to your domain.
  7. Edit the code in your wp-config file to direct to the full domain name instead of the third level domain set earlier.
  8. define('WP_HOME','http://yourdomain.co.uk');
    define('WP_SITEURL','http://yourdomain.co.uk');
    
  9. Visit the domain in your web browser to ensure that the site functions correctly.

Steps to Migrate From An Windows account to a Linux account

  1. Connect to your Windows domain via FTP.
  2. Open the domain folder and drag the contents into a folder on your local PC.
  3. Select the delete icon next to the existing domain on the Windows account.

  4. Agree to the removal of the domain from your control panel.
  5. Select Submit. For the mean time do not click the remove web content box for disaster purposes.
  6. Add the domain to the new Linux hosting account.
  7. Remove the default files that are automatically created.
  8. Connect to your Linux account via FTP, and upload the contents from your Windows account to your Linux account.
  9. If also changing the domain name then edit the code in your wp-config file to direct to the full domain name instead of the old domain.
  10. define('WP_HOME','http://yourdomain.co.uk');
    define('WP_SITEURL','http://yourdomain.co.uk');
    
  11. Navigate to the Databases > MySQL > MySQL DBs on the Windows account.
  12. Select the database being used with your WordPress website.
  13. Select the Built in phpMyAdmin control panel link.
  14. Login to the database using the Database Username & Database Password.
  15. Select the database from the left hand side.
  16. Select the Export tab from the top bar.
  17. Press the Go button.
  18. Create a database on the new Linux account, and a user with a long password.
  19. Select the newly created database.
  20. Select the Built in phpMyAdmin control panel link.
  21. Login to the database using the Database Username & Database Password.
  22. Select the database from the left hand side.
  23. Press the Import tab at the top of the page.
  24. Press the Choose File button and select the database export you created from the Windows MySQL database, then click Go.
  25. Edit your wp-config.php with the details of the new database.

  26. Create a .htaccess file in the root of the installation and fill it with:
  27. # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  28. Visit the domain in your web browser to ensure that the site functions correctly. However as this is a DNS change (because you are moving the domain from one server to another) This can cause downtime of up to 24 hours.

My Site Doesn’t Work After I Migrated It, What Can I Do?

  1. If you are using a caching plugin, Try clearing the cache.
  2. Disable plugins temporarily.
  3. Enable WordPress debugging
  4. Enable PHP error logging
  5. Changing PHP version
  6. Enable Linux/Apache error logging
  7. Force/Stop Forcing SSL

Rate this post 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Please DO NOT use this form to submit support requests, all information submitted will be PUBLICLY VISIBLE.

Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.