Transfer (Copy) a WordPress website, files & database, within Plesk (12.5+)

The instructions below will allow you to copy a complete WordPress website, and all files, from one domain to another, within Plesk version 12.5 or higher.

We are assuming that the old domain is called and the new domain is called

First you purchase and add your new domain to Plesk as you would to add any site. That is a different tutorial, but it involves registering a domain, and pointing the nameservers (at least DNS a records) at your server’s IP address.

First Step – Copy Website Files

  1. In plesk, go to DOMAINS and open the website you want to copy (
  2. Click “Website Copying” in the options, and then select the NEW domain from the list under “Website in Plesk”.
  3. Click “Delete all destination files” if you want to copy over everything in the “New” domain (which will just be standard stuff which is already there when a domain is installed)
  4. Click OK at the bottom

This should complete the website FILES copy.

Next Step – Copy the Complete WordPress Database

You also need to copy the database. It is a similar process.

  1. Open Domains > in Plesk
  2. Click “Databases” either from the Tab or the box to the right (both point to same screen)
  3. There should be only one database – click the “Copy” button to reveal copy options
  4. Give your copy database a name, like copy_olddomaindb or similar
  5. This will create a copy of the database and place it under the “old” website. We want to move it to the new one’s subscription, so in the databases tab, under your new copy_olddomaindb  database, click “move to subscription” and select your new subscription.
  6. Click “OK”.

Next Step – Connecting’s WordPress to the New (Copied) Database

The final part is to connect up the WordPress website to the new (copied) database; change the URL and website address in the database itself; on your new WordPress website.

  1. Navigate to the settings on your new domain in Plesk, and click “databases”. You will need to create a new database user to connect to your database.
  2. Your copy database should show that it has no users. Click that to add a database user, and password, to connect to this database.

You need to update your WordPress config on the new domain and tell it to connect in to your WordPress website’s database.

This file is called wp-config.php and it will sit in the top level of your new website’s files.

  1. Go to domains > and open File Manager.
  2. Scroll down to wp-config.php and open that file.
  3. Click on “Edit in Code Editor” (you could equally use text editor)
  4. Then you need to update the values within the single quotes under:

define('DB_NAME', 'olddatabasename');
define('DB_USER', 'olddatabaseusername');
define('DB_PASSWORD', 'oldpassword');

Replace the old details with the new ones you just made. Database name is the name you provided above (when you copied the database); username and password are the new user details you just made. If you forgot or did not copy these, you can go back and edit them.

FINAL STEP – Setup the URL and Home in your New Domain Database

There is one final step. You copied the database from a website which lived at The details stored in the database for that website (and indeed any image files and non-relative links stored within that website), need to be swapped for

To do this, you can use PHPMyAdmin to first update these details in WordPress database (so you can actually view the website and login!); then install and use a plugin to swap the less important file / image and other locations across the website.

This is the final step.

Updating the WordPress database to the correct URL:

  1. Go to the new domain in plesk and select the databases screen;
  2. Click phpmyadmin next to the database in question (the one you copied in earlier!)
  3. open the wp_options (or someotherprefix_options) table, by clicking on it;
  4. Under siteurl and home it will say – click on edit next to these and change for – be sure to get the full URL absolutely right!
  5. exit / close phpmyadmin

Install a plugin to update URLs saved in the database (for image etc files and any links, so they point to the right domain – this is important!)

  1. Login to wordpress in the new domain and navigate to
  2. Go to plugins > add new and search for “Velvet Blues Update URLs” – this plugin can update URLs in your site – install and activate this plugin;
  3. go to the Update URLs page and copy in and into the relevant boxes, select each option you want to update, and hit “Update URLs NOW” to complete this action!
  4. You should now be finished!

This is the final step, you should now have successfully copied an existing WordPress website, including all files and database, from one Plesk domain to another.

Leave a comment below if this did not work for you.

1 thought on “Transfer (Copy) a WordPress website, files & database, within Plesk (12.5+)”

  1. Watch out for serialised arrays when you are updating URLs – these are often left scattered around by builder plugins. Recommendation is to use WP Migrate DB to “find & replace” the old URL with the new one in your new site, which should get all instances of the old domain.


Leave a comment

No links of any kind allowed in comments - if you add any links, your comment will automatically be deleted.