How to transfer or migrate your WordPress website (also MODX, Drupal, Joomla)

migrate wordpress to websavers

This guide is written for WordPress and web hosting companies using Installatron (like us), however the steps below can be used to import, transfer, or migrate any website using nearly any content management system (CMS) or web app like Drupal, MODX, and Joomla. When you see “WordPress” in this guide, you should be able to simply swap that out for the web app you’re migrating.

If you have already ordered a hosting plan that includes one or more free migration, you can submit the migration request form here, then leave the rest to our team!

Our 1-click web apps utility – powered by Installatron – will automatically package up the database and files, copy them to your account with us, create the new database and if you’re changing domains it’ll even make necessary changes to the database configuration. This is why we recommend using it to handle the migration of any website that utilizes a database, like WordPress.

Before beginning, please ensure there are no existing apps installed at the same domain and path. If you chose to pre-install WordPress during your order, or have installed WordPress or another app, be sure to remove it now by finding the app in 1-click web apps (within Plesk) and clicking the X button beside it.

If you’re migrating a site to a secondary/add-on domain or subdomain… you’ll need to login to Plesk and choose “Add Domain” or “Add Subdomain” to have Plesk set up its hosting before migrating.

Avoiding migration issues

It’s best to disable any security plugins (like WordFence or Sucuri) prior to migration. Do the same for any admin folder changing plugins. You may re-enable them after the migration is completed. If the website you’re migrating is coming from one of the hosts listed below, click on its name to learn how to avoid common migration issues.

Bluehost

Bluehost security systems block the Installatron migration utility from functioning. To ensure this process works, before proceeding with the steps below, you must contact BlueHost and ask them to disable ModSecurity for your site. Once disabled, the migration should proceed smoothly.

MediaTemple

Netfirms

How to migrate a WordPress site using WordPress login details

If this process fails or you’re not using WordPress, try the FTP method instructions below.

  1. Log in to Plesk
  2. Choose 1-click web apps or Installatron.
  3. If you already have at least one application installed, you’ll need to choose the “Application Browser” tab in the upper right corner. If not, then you should already be there!
  4. Scroll down until you see WordPress (or use the search box in the upper right corner) and click on it.
  5. If you see a button on the right that says “Import Existing Install”, click it. If not, you’ll see a button that says “Install this application” with a downward pointing arrow on its right side. Click the down arrow, then choose “Import Existing Install”.
  6. Under the “From different account” part of the page, click the Continue button.
  7. Migration Settings (anything not described here should be left at its default value):
    • Source URL: is the URL to the website you’ll be transferring. Visit the site in your browser, then copy/paste the URL from the address bar into this box.
    • Protocol: WordPress
    • Username: enter the WordPress admin username you use to login
    • Password: enter the WordPress admin user password
    • Destination: Choose the domain to which you’ll be migrating your website.
    • Directory: You’ll likely want to keep the directory field blank unless you are planning on having your website visible at a subdirectory like this: yoururl.com/directory and not just yoururl.com.
  8. Click Import
  9. Once the import has completed successfully, see the post-migration tasks below.

How to migrate your website using FTP/S

Post Migration Tasks and Tips

  • If you encountered any errors or problems, see the troubleshooting section below to learn how to fix the most common issues with migrations.
  • If you needed to deactivate security rules at the source host, please reactivate them now for optimal security.
  • Deactivate any host-specific plugins from your prior host. These are often security or performance related plugins like Siteground Optimizer. They will typically not work correctly on any host that isn’t the company that made them. You may need to use the File Manager to look under wp-content/mu-plugins for plugins that your prior host force installed.
  • If you have a plugin that connects to redis (ex: “Redis Object Cache” or “Redis for WordPress”) deactivate it. If you’re using W3 Total Cache and the Object Cache is enabled, disable it now. (Tip: if you have your own VPS, you can install redis through SSH, then keep your object cache enabled).
  • For optimal security and performance, ensure your WordPress plugins are optimized as found in our discouraged plugins and configurations list.
  • See our guide on securing WordPress for the best next steps to keep WordPress secure on Websavers hosting.

If you’re migrating a non-app based website or can’t get these instructions to work (possibly due to remote host issues like low disk space), steps describing how to do a manual website transfer can be found in our general migration guide. You can also use that article to learn how to migrate your email; this guide covers only a web-app based website.

Troubleshooting

The Migration Assistant plugin could not be installed automatically

WooCommerce Product Options by Barn2 data missing

Path error, directory error, or unable to find WordPress error (and how to find your web root path)

This is the issue if Installatron says “A test of the selected domain has failed (HTTP error 404).” And then at the bottom of the error it says something like “Technical Error: [1] Written file: /web_root_path/deleteme.random.php‘ not accessible at `http://{domain}/deleteme.random.php’.

If it doesn’t say HTTP error 404, the path might not be the issue. Different error codes like 403 or 416 typically mean the source host’s firewall is blocking the migration.

IF USING FTP OR FTP WITH TLS

Double check that you configured the FTP user/account home folder to match the web root path for the website. If you have, then the solution should be to simply leave the path field blank (remove its contents) when entering the import details in 1-click web apps.

Try logging in with an FTP app on your computer. If, immediately after logging in, you see the standard WordPress files (ex: wp-config.php), then you can set the path folder to be empty in 1-click web apps. If you host multiple websites, make sure it’s also the path to the *correct* WordPress website! If you have to open up a folder (or two) to find your WordPress files, make note of the folders you have to navigate to get there, and that will be the path to enter in 1-click web apps. For example if you have to open public_html followed by mydomain.com, then your path is: public_html/mydomain.com whereas if you only have to open up the folder mydomain.com, then your path is simply: mydomain.com

IF USING SSH OR SFTP MODE

SSH and SFTP transfer methods can be a bit tricky to get right. There’s commonly two reasons why you might have trouble with SSH or SFTP transfer mode:

  1. The firewall may be blocking port 22 outbound, in which case you’ll need to get this port opened to proceed. This is one reason why we recommend using FTP with TLS mode.
  2. 1-click web apps requires an absolute path to the web root for the transfer to be successful. As an example, if your remote path currently seems to be public_html and it’s not working, try using an FTP app to find the absolute path from root, which should look something like this: /home/{your_ftp_username}/public_html. If your former web host is using Plesk, and the web root is httpdocs. the absolute path is probably /var/www/vhosts/{your_domain}/httpdocs

Compression Failed Error

Authentication or connection errors after confirming the user/pass works using an FTP app on my computer

Posted in ,

Jordan Schelew

Jordan has been working with computers, security, and network systems since the 90s and is a managing partner at Websavers Inc. As a founder of the company, he's been in the web tech space for over 15 years.
WS-Logo-only-image-large

About Websavers

Websavers provides web services like Canadian WordPress Hosting and VPS Hosting to customers all over the globe, from hometown Halifax, CA to Auckland, NZ.

If this article helped you, our web services surely will as well! We might just be the perfect fit for you.

Leave a Comment