SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Moving WP site.

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Location
    Co Durham UK
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Moving WP site.

    Hi, how easy is it to move a WP site from one server to another. Im working for a guy who already has a WP site on his server. We have decided to make a better one with a new template.
    Im doing this in my server first to see if everything works. When it is finished, will it be a case of deleting his WP files etc and transferring the new one from my server via FTP.
    Obviously we are wanting it to be as smooth as possible. Can anyone help?
    Thanks, Alan.

  2. #2
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's quite easy. I'd (generally) do it like this:
    1. Export wp database from old server and import it to new one (and fresh wp installation). After that there should be no changes of the old site.
    2. Prepare new template and make all necessary changes on new server.
    3. When you have ready, new site, use new template and new database on the old server.
    If you make some changes in urls make sure to make redirections in your .htaccess file.
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW

  3. #3
    SitePoint Member
    Join Date
    Dec 2011
    Location
    Bulgaria, Greece
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use phpmyadmin to export old data and import sql file in new server. WP have one plugin "import data" you can use it so

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,495
    Mentioned
    161 Post(s)
    Tagged
    4 Thread(s)
    It may be necessary to change some data in the database backup before importing it in the new site. Some plugins store "root relative" urls (I don't know how to call them) in the database, and those might not work on the new server (it happened to me).

    For example, your site's root directory might be something like '/home/mhd/domainname/htdocs'
    while on the new server it might be different: '/sites/domainname/htdocs'

    In that case, you'd have to replace any '/home/mhd/domainname/htdocs' stored in the database with '/sites/domainname/htdocs'.

  5. #5
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Location
    Co Durham UK
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the feedback guys. As it happened everything went OK. I simply installed the new theme on to his server, and activated it.
    A few amendments were needed, Im just not used to things running that smoothly!!!!
    Alan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •