How Do I Transfer Wordpress Sites

Discussion in 'Site & Server Administration' started by Jimbob1208, Aug 6, 2012.

  1. #1
    Hi,

    I am giving my mate a bit of a help out in my spare time to re-design his hobby website and I am going to use Wordpress as the platform.

    If I setup and customise a wordpress based site/theme on a spare domain name I have e,g. www my-spare-domain com and once it is finished and my mate is happy with it, how do I move it all across to replace his existing hobby website e.g at www my-mates-hobby-site com

    His current site is not a wordpress site?

    Thanks for any advice
     
    Jimbob1208, Aug 6, 2012 IP
  2. Philvault

    Philvault Active Member

    Messages:
    1,284
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    80
    #2
    As long as your mate is ready to embrace wordpress and ditch his non-WP site, moving in is as easy as pie. Search for 'xcloner' in the Wordpress Plugins site. It saved my a** a dozen times trying to move out from one hosting to another.
     
    Philvault, Aug 6, 2012 IP
  3. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #3
    You basically need to:

    1. transfer your wp-sources to the new location;
    2. dump and restore the wp database to the new location and grant sql permissions to the database user;
    3. change the main wordpress url to the new one in wp database.

    the step 3 may not be required if the url is changed before the data is transferred over to the new location.
     
    RoseHosting, Aug 7, 2012 IP
  4. тнє Sufi

    тнє Sufi Peon

    Messages:
    391
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    download wordpress files and export database, upload them to the new server, import the database, change config.php file with new db credentials.
    If you need to also change the domain of the site, open up PHPMyAdmin, execute down following queries(replace with your own domains):
    
    UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
    UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
    
    Code (markup):
     
    тнє Sufi, Aug 12, 2012 IP
  5. JoshDylan

    JoshDylan Well-Known Member

    Messages:
    133
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #5
    You guys are making this to complicated.

    Step One - Download all files in /public_html/ directory

    Step Two - Export database via PHPMyAdmin

    Step Three - Reupload contents of /public_html directory to new host

    Step Four - Re-create and upload the database via PHPMyAdmin

    Step Five - Edit wpconfig.php file with new database details if any have changed.
     
    JoshDylan, Aug 13, 2012 IP