There are many reasons to clone a WordPress website. Maybe we want to test new plugins or themes. Or maybe move the site to a new server. In fact, cloning a WordPress site is extremely easy with Duplicator. This plugin lets you combine WordPress uploads, themes, plugins, and most importantly, content. Here are the 5 most detailed steps to clone a WordPress siteLet’s go together WordPress tips to find
5 steps to clone a wordpress site
Step 1: Install Duplicator plugin on WP
First, we need to install the Duplicator plugin. Go to the WordPress dashboard, then click Plugins > Add New in the sidebar. Next, search for “Duplicator” and select the first result.
Once installed and Active Duplicator, this plugin will appear in the admin sidebar. From there, you can click on Packages to select the export page.
Step 2: Export the Duplicator package
After entering the Duplicator page, click “Create New” in the upper right corner to start the export process. The generated Duplicator package will include themes, plugins, media and content i.e. everything on the website.
There are several other options here, including components and the name of the export or package. You do not need to change this setting. So click Next.
The duplicator then scans the page to see if the export works correctly.
Click the Build button to compress the page into a bundle. This is a PHP installer file along with a zip file containing all the files and content for the WordPress site.
The cloned WordPress site can be downloaded by clicking “One-Click Download”. Then the PHP file and the zip archive will be downloaded. Depending on the browser you are using, you may be notified that your site is downloading multiple files. Click Allow to accept.
After compressing the website, it’s time to move to a new server.
Step 3: Upload the Duplicator package to the new server
Downloading a cloned WordPress site requires access to an FTP site. Normally you can get FTP credentials through your web hosting service administrator.
Some popular FTP clients for WordPress users
- To transmit.
In this example, we will create an account FTP on SiteGround. The server interface between the software may be different, but the functionality will be the same.
After creating the FTP credentials, write down the username and password to enter in the FTP client. In this tutorial, we will be using the free Filezilla FTP client.
Note: If the server uses FTP or SFTP, if the credentials don’t work, it’s probably the SFTP credentials. This can be changed in the FTP client protocol preferences.
After connecting to FTP, scroll through the folders to make sure you are in a publicly visible folder. This folder is often called “public_html” or similar. If there are no folders on the server, you are probably in the default public folder. If the default public folder cannot be found, ask your host for the exact path.
Next, we should delete all unnecessary server default files while importing the WordPress site.
Now that we have a new public folder, let’s download the Duplicator zip file and the Duplicator installer.php file. Simply drag and drop these files into your FTP client. The import may take a few minutes depending on the size of the site.
Step 4: Create a new database for the new site
Our new WordPress site will need a new database to function. Therefore, we need to create a database in the web hosting control panel.
In SiteGround, simply click on “Create Database” in the site tools section.
Next, you need to create another database user. The database will contain the content, with the user providing access to it. This new username and password will also be used when setting up the cloner, so don’t forget it!
Next, ensure that the database user has access to the newly created database. In SiteGround, just click manage access and it will automatically select your database. Now we have the database name, username, password. This is now the final step in the WordPress website cloning process.
Step 5: Run the Duplicator installer and finish cloning your WordPress website
After adding the files to the server, you can access the Copy installer by navigating to yourdomain.com/installer.php. Then the copy installer will run. And request detailed information about the MySQL database configured in the previous steps. When the installer first loads, it will recheck your hosting environment to make sure everything is installed correctly.
Check the terms and conditions, then we can continue. You can then enter the details of the previously created database. This includes the database name, username, and password. By default, Duplicator will delete what is in the database and add WordPress content. So be careful if you use an existing database.
Most of us are moving our site to a new domain, so the next option lets us choose a new URL for the site. By default, it will provide the correct URL for the new domain, so you don’t have to do anything for now. Besides changing the URL, you can also add a new WordPress admin account.
Finally, the Duplicator plugin will complete the cloning of the WordPress site. Let the Duplicator plugin remove its installation files. Otherwise, someone else can overwrite your site with the installer.php file. By default, the Duplicator plugin will delete these files, but you have to be very careful.
See more : What is WordPress Multisite? 6 detailed installation steps
So together we discovered how clone a WordPress site. Discover more articles by WordPress Tips for more great tips.