Moving a WordPress Website from a Development Environment to a Live Server

Migrating with Duplicator: a WordPress site is moved from one computer to another

Given the current state of the housing market, moving can be pretty tough – but luckily this article is only about moving a website from a development environment / test server to a live server. That’s the step we always take once a site is finished and ready to go live.
In this post, you’ll get a step-by-step guide on how to transfer a WordPress website from one server to another with the help of plugins.

Step 1: Final testing of the website

Before you go to the trouble of moving a website, you should always test thoroughly one more time whether the site is really finished. Does it work the way it should, and does everything display correctly at different resolutions? Ideally, the client should have reviewed and approved the site before a backup is made (step 3). That’s the only way to save a “perfect backup” and spare yourself extra work.
So once the site has been reviewed, tested and approved, move on to step 2.

Step 2: Install Duplicator

The Duplicator plugin in the WordPress plugin directory
The Duplicator plugin in the WordPress plugin directory

Our plugin of choice for creating backups is called Duplicator. It stands out for its simplicity and effectiveness – in other words, it’s very user-friendly and delivers excellent results. On top of that, the plugin is free. If you already have the Duplicator plugin installed, there’s nothing left to do here and you can move on to the next step. Otherwise, go to the Plugins item in the dashboard menu, click “Add New” and search for “Duplicator”. You’ll recognize the plugin by its two-tone icon, which suggests a split gear. Or a duplicated gear, if you like. The plugin was developed by Snap Creek.
Once the plugin is installed, you can create a backup in the next step.

Step 3: Create a backup of the website

If something goes wrong on the client’s or the host’s side in the future – if the website gets damaged somehow or is lost – the harm is limited, because you still have the backup up your sleeve.

To create one, simply open Duplicator in the dashboard menu and then click “create new”. You don’t need to change any additional settings on the first page. You can enter some details of the target database in the “Installer” section right away, but that’s optional. Then click “Next” and Duplicator scans your site. Afterwards, you’ll be informed about potential issues, which we’d like to go into briefly.

The result of our Duplicator scan
The result of our Duplicator scan
  • The server requirements are normally always met; if they aren’t, you’re with the wrong host, or the web space they give you is from the last century. Either talk to your host or switch to another one if there’s really no other way.
  • Among the archive notices, you can usually ignore warnings about the file size check. Most of the time these are larger videos, images or .pdf files. Every now and then, though, you’ll also get a notice about an archive of the entire site created by another backup plugin. In that case, you should exclude these files or even set a filter on the entire folder in the previous step.
  • The add-on sites check shouldn’t be relevant; a sensible WordPress installation doesn’t have another WordPress installation in its subfolders. Instead, these additional WordPress sites live in their own folder on your web server.
  • The file name check always raises the alarm when you’ve uploaded files with umlauts in their names. That’s a big no-go in general. You now have 2 options: either you re-upload these images and replace them in all pages / posts accordingly (or add them again), or you ignore the warning and check whether they display correctly on the new server after the migration (if not, you’ll have to add them again at that point).
  • Read Checks points you to directories that can’t be read; that’s normally never a problem either.
  • Finally, you get some info about the database, but even larger databases are no problem for the plugin in most cases.

Keep in mind that you can always make adjustments and start the process again later. So if there are too many warnings, it’s worth fixing things here first. Since most of them are only notices, they’re no reason the migration won’t work anyway.

After you click “Build”, Duplicator creates a .zip file containing all the data on the FTP server (the theme, the plugins, etc.) along with a snapshot of the database. Save this package to your computer first – with it, you can migrate the WordPress website to any destination you like (in our case, the live environment).

You also get an installer.php that lets you start an automated installation process on the target server. You should download this as well.

Step 4: Upload the website to the live environment

Logo of the FTP client FileZilla

To upload these two files to the live server, we need an FTP client. Our favorite is “FileZilla”, a free program that does the job reliably.

Enter the target server’s details in FileZilla and connect. Then upload the files we just downloaded – the .zip archive and the installer.php.

Next, open the installer.php in your browser. This means your host must have set up at least a temporary URL pointing to the folder you uploaded the files to. Then enter that address, e.g. http://beispiel-webseite.de/installer.php
Now you’ll see a Duplicator interface again, which should look fairly similar to the scan result. More on that in the next step.

Step 5: Test the site

As mentioned, Duplicator shows up once more when the new live environment is called up with the uploaded files on the server. We’d like to break down the following steps and explain them one by one:

5.1. Extract the archive

You can have the .zip file extracted automatically, and Duplicator will warn you if something isn’t right. Just like in step 3, though, you can continue even if a warning is red (for example, if certain files are meant to be larger than 3 MB). Once we’ve read and understood everything (and checked the box to confirm it), we can continue.

5.2. Install the database

Logo of the web host All-Inkl.com

In the next sub-step, you enter the host and password. You should have received these credentials from your web hosting provider (our preferred provider: all-inkl.com), or you can look them up in your server administration panel. Once everything is filled in, you can have the database tested and then check whether everything is in order. Is the version right? Was the installer able to connect to the database? If so, we move on to the next sub-step.

5.3. Replace data

In the next step, we tell the plugin the target URL. Duplicator usually takes care of this already, but you should double-check it to be safe. For example, you might initially only point a subdomain to the target environment but want to use a top-level domain once the move is complete. In that case, you can enter it here.

5.4. Test the site

This important step is needed to check whether everything has been carried over. To do so, click the ‘Test Site’ button. The site may take a little longer than usual to load the first time, because some data or parameters are still being passed along. So load the page a few more times afterwards to test the speed.
Feel free to take a few minutes for testing. Look at all the images. Click through all the menu items and links. Test the sign-up for your newsletter and sending emails via contact forms. That’s the only way to make sure all settings have been carried over and nothing is missing or broken.

If something did go wrong, it’s time for some troubleshooting. Sometimes it’s enough to save the plugin settings again; sometimes, unfortunately, a bit more effort is needed. If something went wrong and you’re stuck, feel free to leave us a comment. Either way, there’s no reason to panic, since you still have the backup saved on your computer and the development environment still exists.

Once the new site has really been checked from top to bottom and everything has worked, you should finally run the cleanup in the backend that Duplicator offers you. In this step, the permalinks are saved once more and the archive files and the installer are deleted; these have to be removed from the server, otherwise a hacker could gain access to them, which could have legal consequences if, for example, customer data is stored in the installation. If you no longer see the Duplicator notice, you can also go to Duplicator -> Tools and trigger the “Clean Up” manually.

Step 6: Delete the development environment

If you like, you can delete the Duplicator plugin or at least deactivate it.

The development environment is no longer needed now and can be deleted as well. We usually keep the backup of the site on our hard drive for a few more weeks, just to be safe.

But the move is now complete. Your site is live and available at the address you wanted. And in the end, the whole thing went off relatively smoothly and without complications – at least compared to moving house.

The nexTab team wishes you every success and all the best with your new website or your new host!

Enter opens the slider, Esc leaves it. Arrow keys browse, Tab moves on.

More from this category

Leave a Reply

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