Transferring a (WordPress) website or blog to another domain, environment or hosting party can be quite a tricky task for the inexperienced user.
This often requires some technical knowledge such as:
- Knowledge of databases
- MySQL & PHPMyAdmin
- file and user rights on your server
The average WordPress user gives up at the very mention of MySQL. Fortunately, there are a huge number of extensions, also called plugins, available for WordPress on the market.
These plugins make it possible, without any technical knowledge, to still create a migration or website backup. This tutorial will focus on a specific plugin on the market called duplicator.
During this blog post, through a few simple steps, you will move your website from A to B.
What do you need to follow this guide:
- A website with the WordPress CMS
- A hosting environment/server you want to move the website to
- A database and user on that hosting environment
- The FTP details of this hosting environment
- 10 minutes of time 🙂
1. Installing the Duplicator plugin
The first step is to install the Duplicator plugin on the website you want to move / Backup from. You do this as follows:
Log in to your WordPress website management environment: www.domeinnaam.com/wp-admin
Go to Plugins - New Plugin in the sidebar of the management environment.
On the Add Plugins / New plugin page, there is a search field at the top right with the text Search plugins... This is where we enter the name of our plugin: Duplicator and press enter to start the search.
Find the Duplicator plugin from the results and press Install Now to install the plugin on your WordPress website. Once the plugin has finished installing, click the activate button in the same screen. This causes the plugin to be activated and visible in the sidebar.
Now that we are done activating the plugin, we can start creating the backup in this WordPress plugin.
2. Creating & saving the backup
Click on the Duplicator name in the management system sidebar. This will automatically redirect you to the packages screen. In this screen, you will see an overview of all the packages that have been created.
But then what is a package?
A package is a composite file created by Duplicator. It contains the current state of the website at the time you create it. Which means that the package contains the website files and data of the website from the time of its creation.
So this means to backup your system (website) and use this backup. Or to move your website to one place.
At this time we have not created any packages so you will probably see the following screen.
So it's time to create a new package. You do this by clicking on the "Create New" button in the upper right corner. This will initiate the backup process with the following steps:
- Setup In the setup you specify the options and the name of the package
- Scan In the scan step, the plugin will scan your website and offer an overview of what was found. From files and formats to alerts.
- Create In the create step, the plugin creates the package with the found information and name you specified in step 1
Step 1 - Setup
In the first step, setup, you name your package. For beginners, I recommend leaving all the settings on this page.
Go to step 2 by pressing the following button at the bottom right.
Step 2 - Scanning the website
In step 2, the plugin starts scanning your WordPress website. It retrieves the following data and after a short time shows it in a short overview and indicates whether something is critical, reportable or good:
- Setup - Server information such as the PHP version, Open Base Dir and PHP Max Execution Time.
- WordPress - Information related to your WordPress environment such as version, core and cache
- Files - The file size of the files found
- Size checks - Shows which files can be compressed
- Addon Sites - Shows if addon Sites have been found
- Name checks - Looks to see if all file names are correct
- Database - Shows the database size
- Overview - Shows detailed information of the database
After checking that everything is OK check the checkbox with Yes, Continue the creation process! and click create to create the package.
Step 3 - Create the package
Step 3 prepares the package for you. This may take a few minutes. This depends entirely on the speed of server & the size of the website.
After the package has finished creating and everything has gone well, the files are ready to download. You will be presented with the following files:
- Installer - Ensures that you can install the website in another place, so we need this one.
- Archive - The package of website files. These in conjunction with the installer allow the website to be installed elsewhere.
- One-Click Download - Download the above files in 1 click.
So it is important that you have both the installer if it archive download.
3. Database & user creation
In this step, we are going to create a database and database user on new environment. Since there are many different hosting environments, such as cPanel and DirectAdmin, I can explain this step with difficulty. For DirectAdmin, it can be done as follows:
If you can't figure it out, ask your hosting party for help or leave a comment on this post and I'll try to get you started!
4. Uploading the files (moving website).
In this step, we will use an FTP connection to transfer the files to our new hosting environment.
Place the Installer.php and the website package you generated at the new location. This can be done directly in the public_html or www folder, or in a subfolder of it. In the example below, I FTP connected to a hosting environment via the program winSCP.
Here I created a folder called test environment where I want to install the website. This will result in the website at: forgedpixel.co.uk/testenvironment
5. Website installation
In the last step, it is time to install the website on the new environment. In step 4, I created the test environment folder on forgedpixel.co.uk and placed the files in this folder.
To start the installation you need to invoke the installer through the browser. You do this by typing /installer.php after the url of the location where you placed the package.
Using the example above, I can do that by visiting the following URL: forgedpixel.co.uk/test environment/installer.php
If the file is called correctly the duplicator menu will show up and it is time to install
The installation will consist of 4 small steps:
- Install Database
Agree to the terms and conditions and proceed to step 2 of 4 on entering the database information from main step 3.
NOTICE: At Action, execute consciously. Connect and Remove All Data ensures that all information in the specified database is deleted.
At Database, enter the database name. At User, enter the created database user and at password the corresponding password. Then test your data by clicking on the Test Database button (bottom right) press.
if you entered your information incorrectly, you will see a fail.
if you have entered your data correctly, you will see a success after which you can proceed to step 3
Confirm the data the installation and it will start installing the website on the new environment.
In step 3 of the 4 update your data.
We're almost there! In this step you check the URL, Paths and title of the website.
Under Options you have the option to create a new administrator account. You do this by entering the username and password in the input fields.
Adjust the data to your liking and proceed to step 4 to complete the installation.
Step 4 - Testing & Cleaning Up!
Once you reach step 4, your website will already be installed and working on the new environment. You can test this by pressing the site Login button and cleaning up the installation files left by Duplicator 🙂 .
Log in with the known credentials to the new environment and you will receive a message that the migration is almost complete. Go to the link provided and clean up the site.
Click Saved Data and select both Remove installation Files as Empty the Cache.
And you have successfully moved your first website
Congratulations, you have successfully moved and backed up your first domain. As you do this more often it will go a lot faster and become like . breathing ;-).
Are you getting stuck somewhere in this process? Feel free to let me know so I can help you get started.