Overview
This guide will step you through the process of moving a Plesk managed WordPress instance from a subdomain to your new site. This can be used when you have developed a new version of your site within a subdomain and need to make it live to the world.
Instructions
- Login to your Plesk server and select the development domain.
- Click on Website Copying:
- Leave Website in Plesk selected, then select the new “Site name” for the new location:
- Click Ok. This will begin the process of copying all the WordPress files across.
- Under the existing subscription, select Database at the top right:
- Select the associated database and then click Copy:
- Enter a new database name then click OK. You should now see a copy of the database under the existing subscription.
- Click “Move to Subscription”:
- Then, select the new subscription from the drop-down list:
- This will move the database to the new subscription. Select the new subscription from the left-hand menu.
- Select Databases again from the right-hand side menu.
- If the database isn’t assigned to the site, select it from the drop-down menu:
- Then, click on “Create” beside the database name to create an new database user:
- Then, enter the new username and password:
- Before clicking on OK, note down the username and password. You’ll need these to update the WordPress configuration. Then, click OK.
- Return to the subscription / domain screen, then select File Manager:
- Click on the “wp-config.php” file, then select the “Edit in Code Editor” button at the bottom of the page.
- Scroll down until you find the DB_NAME entry:
- Update the configuration for DB_NAME, DB_USER and DB_PASSWORD to the new settings you have created. Double check the formatting to ensure there are no syntax errors. Then, click OK to save the file.
- At this stage, your website should be functional. Double check everything thoroughly, including checking for errors in the error logs (we have a guide for that here).
- You may also require a URL rewrite within the WordPress database. A separate article will be available for this soon.
If your site is hosted with Conetix, please don’t hesitate to contact us for assistance with any migrations or moving from staging to production for your WordPress site.