Wordpress - Migrating between sites, servers and folders

Wordpress saves certain parameters in the database which need to be modified if you move your site between domains, servers and folders. this is due to the images of posts being relative to the folder structure on the server you are using. So for example if you are hosting on a server where the path is for example d:\sites\html and you move to a different server where the folder path is c:\sites\html then these need to be changed in the database. There are many plugins for wordpress but one of the easist ones is called "duplicator" 

Please follow the below process to install the plugin and move the site to another folder or location.

NOTE: Duplicator  requires that you have  login to SolidCP, and goto the File Manager, In the file manager next to the folder name of the domain you are restoring to you will see a lock icon, click this and it will take you into the permissions screen. There you should see a username the same as the dmain name, you need to click the read checkbox and click the set permissions button. DO NOT check the "Replace permissions on child objects" checkbox. This allows duplicator to read the website files correctly, once the website is restored, you need to take away the read permissions in the same way. This ensures your site remains secure.

  1. Login to your wordpress admin area, and click on the plugins link and select "add new"
  2. Type in "duplicator" and search and click on the plugin and select "Install Now"
  3. Once installed click on the activate link
  4. Then click on the manage link
  5. Click on the "Create New " on the top right of the plugin page
  6. You can fill in the information if you want to or you can leave all fields blank. I suggest you leave them all blank for now and click "Next"
  7. If a warning is generated you can look at the errors, but you need to select the checkbox "a warning status was detected" and then click on the build button. Normally a warning status is displayed if the site is large this can be ignored.
  8. Once the build is completed it will give you the option to download the installer file and the archive file, you will need both of these to move your site. So download both of these.
  9. Once downloaded you will need to ftp these files to your new site, or to a sub folder etc, this is dependent on where you are cloning your site to.
  10. If you are loading the WordPress site on our server as a new site you will have to create a new database in solidcp, by clicking "mysql5 or mysql8  databases" in the domain options for the domain you are loading to. You will also need to add a user account with a password. Please write this information down as you will need it later. If you are moving the site to a different folder then you can use the existing database and user info. you can see this info in the wp-config.php file.
  11. Once you have the files uploaded to the folder, ie the archive file and the installer.php file, and have setup the database, then goto your new location of your web in your browser pointing to the installer.php file., ie if you were moving your WordPress site to a test folder from the root folder then you would ftp the files into the test folder and then browse http://www.yoursite/test/installer.php
  12. Once you have opened the installer page then we need to fill in the required information.
  13. Firstly you need to enter the database information, select "connect and remove all data", then enter the server name ie mysql.yourowndomainname, enter the database name, and password as well. PLEASE NOTE you can get this information from the wp-config.php file in the root folder of the original website.
  14. Press the test connection button if the information is correct you will get success for both options.
  15. Click the I have read the  warnings and notices checkbox and click the "run deployment" button, you will be asked to confirm that this is what you want to do, please read the Waring and make sure you have the correct information for the new database.
  16. You should be displayed the old site information and physical path, and the new website location and physical path, you should not have to change this normally. If you want to create a new admin account you can fill in the info, or if you do not the old admin account will be left intact.
  17. Click "Run Update" This will update the database info to reflect the correct information for the new site.
  18. Login to the back-end of the new website, normally http://www.yourdomain.co.za/wp-admin
  19. Test and check your website pages are all working 100%
  20. NOTE If you use permalinks and didn't disable them before moving, login to your admin area, goto the settings > permalinks, turn them off, ie put it back to the first option and save, then select the permalink option you want and save this will resolve the issue..
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Wordpress error when updating plugins or upgrading

Wordpress since version 3.2 has been giving some clients issues, to resolve this problem, edit...

Display detailed information rather than a generic 500 error

If you are receiving the dreaded 500 error, you can follow the below temporary patches to display...

Starting to send out bulk emails

Welcome to the bulk mail system, this document will take you through the first steps you need to...

Wordpress - Thumbnails do not show when using an elegant themes theme

Fix | Thumbnails Not Working in a WordPress Theme From Elegant Themes On some web hosts,...