Need To Move A WP Blog To another Server With Same Domain - The Easy Way!

9 replies
I have a WP blog on Bluehost at the moment, in one of those accounts where you can have 6 domains in one account.

I'd like to move one of these six WP blogs to my HostGator reseller account into its own unique installation. Everything needs to stay the same, including the domain name.

Every guide I can find is impossible to follow. If I'm keeping everything the same, shouldn't this be easy? I'd love some advice!
#blog #domain #easy #move #server
  • Profile picture of the author frqhuss
    The best way to know more about it is to contact the hosting costumer service and know more from them...
    {{ DiscussionBoard.errors[1720659].message }}
  • Profile picture of the author Istvan Horvath
    1. Back up the existing blogs (on bluehost): the database (export) and all the WP files/folders
    2. At your registrar change the DNS info for those domains and point them to hostgator's dns
    2. set up the domains at HG (I have reseller account in another place... but I guess the basics are the same: create new account - domain name, user, pw)
    4. Create the new (empty!) database for each blog on HG and import the .sql backup file
    5. edit the wp-config file of each blog with the new DB info
    6. via FTP upload the WP files to the new accounts

    It should work; I did it with several blogs recently.

    I don't think there is any simpler way than this.
    Signature

    {{ DiscussionBoard.errors[1720685].message }}
  • Profile picture of the author mywebwork
    Hi Alex

    It's actually not a difficult task, in your case you need to move both the domain name (to the nameserver on the new host) and the blog itself (which involves transferring both the files and database).

    When you setup an account on the new server you will be given a Primary and Secondary nameserver address. You need to login to your registrars control panel (i.e. GoDaddy or NameCheap) and edit your Domain Name to use these new nameserver values. Once y do that your domain will be moved.

    The WordPress site has a pretty detailed tutorial on moving WordPress:

    Moving WordPress WordPress Codex

    Let me know if you need any further clarification

    Bill
    {{ DiscussionBoard.errors[1720704].message }}
    • Profile picture of the author zapseo
      I move wordpress blogs for people.

      I do not think that the wordpress codex makes it a slam dunk.

      There are multiple differences in configuration that need to be accounted for.

      It's easy to install a blog onto a server.

      But the blog then, like topsy, grows...

      You add themes and plugins and widgets.

      Within the WP configuration, there are references not only to the domain name itself (easy to fix) but also to the computer pathname (usually not the same, if you've moved to a different host.) Generally these are stored within the WP database (but not always).

      Further, your database likely will not have the same database name -- since cPanel hosting uses the login name of the hosting account as a prefix to the MySQL databases. Therefore, your wp-settings will need to reflect that.

      Your plugins often contain code that is often stuck into wp database fields -- but those end up containing names that likely will need to be adjusted -- again, often the login and/or pathname for the hosting account. Changing these can be problematic, especially if they are of differing lengths.

      In summary:
      A fairly thorough understanding of wordpress configurations is needed to make a foolproof transfer of a wordpress blog.

      Whatever you do: be sure to follow the instructions to backup the files and the database before you move your blog.

      Some wordpress transfers can occur easily; others, not so.

      Live JoyFully!

      Judy Kettenhofen
      Warrior-For-Hire
      {{ DiscussionBoard.errors[1720764].message }}
      • Profile picture of the author Istvan Horvath
        Originally Posted by zapseo View Post

        I move wordpress blogs for people.
        I also used to do it for years... not anymore. Let's see:

        Originally Posted by zapseo View Post

        Within the WP configuration, there are references not only to the domain name itself
        The OP was very clear about keeping the same domain name!

        Originally Posted by zapseo View Post

        but also to the computer pathname (usually not the same, if you've moved to a different host.) Generally these are stored within the WP database (but not always).
        Show me one table in the WP database that has the "computer pathname".

        Originally Posted by zapseo View Post

        Further, your database likely will not have the same database name -- since cPanel hosting uses the login name of the hosting account as a prefix to the MySQL databases. Therefore, your wp-settings will need to reflect that.
        You better don't touch the wp-settings file. As I said above: edit the wp-config file and put in the info about the new database. Simple, as editing 4 lines.

        Originally Posted by zapseo View Post

        Your plugins often contain code that is often stuck into wp database fields -- but those end up containing names that likely will need to be adjusted -- again, often the login and/or pathname for the hosting account.
        If a plugin does that - you shouldn't use it because it's a security risk!!!
        Plugins should NOT have anything to do with your hosting accunt's login credentials.

        Originally Posted by zapseo View Post

        A fairly thorough understanding of wordpress configurations is needed to make a foolproof transfer of a wordpress blog.
        I just gave above a foolproof method - provided one can export (backup) the database, download and upload files via FTP and import the sql file into the DB via phpmyadmin.

        Lastly, when you move the blog from one domain to another, besides the steps outlined above, install the Search and Replace plugin to change the references to the old domain in the database, e.g. uploaded image path.

        ============

        If somebody is willing to do the job themselves - let's not scare them telling how complicated it is.

        If you make a living by offering such services, dont' worry: there are enough people who will never touch anything in a database... so, you will still have enough clients :p
        Signature

        {{ DiscussionBoard.errors[1720812].message }}
  • Profile picture of the author zapseo
    Istvan, I'm sure you mean well, as do I.

    I stand by what I've said -- except to modify it by saying ... the simplicity of the move is dependent upon the simplicity of the wordpress configuration. So it's quite possible to move wordpress blogs with fairly simple configurations, simply.

    Two points, before I sign off, though:

    1. Here's the entry in th wordpress database that countains the pathname:
    table: wp_options field: upload_path
    This addresses the additional item to your so-called foolproof list that you added to in post 6.

    2. Whether code in the wordpress database is a security issue is a secondary discussion. It, however, does not mean that, in moving a wp db, such code
    doesn't exist. It does. And, in some of the blogs I've moved, it's been a number
    of fields in the wp_options table. If someone were paying me to move blogs, that's what they hire me to do. I can certainly advise them that it might represent problems -- but the task is to move the blog.

    As it stands, however, in my experience, people usually have far more severe security issues than code in their wp database. (If you look up posts I've started here on the WF, you can read one I wrote about passwords and password strength: just go to
    View Profile: zapseo to check out my posts...)

    I may be a stranger to you, Istvan, but I've been around the WF a lot longer than your "just over a year". I'm not just a newb that fell off the turnip truck, and I'm not looking for wordpress installation jobs per se. I have plenty of clients to work with at the moment (and I'm always looking for GOOD clients, as should any small business person -- I'm actually quite blessed with the wonderful clients that I have.)

    I AM looking to give people considered advice. They can take it for what it's worth. Our differences clearly indicate different experiences that we've had. But the fact that you've had different experiences than I does not invalidate what I've said.

    Live JoyFully!

    Judy
    {{ DiscussionBoard.errors[1723851].message }}
  • Profile picture of the author sbucciarel
    Banned
    Domainingdiva.com ... I think it's still the first post has instructions.
    {{ DiscussionBoard.errors[1917908].message }}
  • Profile picture of the author aa411853
    The only thing to add to the original how-to from Istvan is that you may have to change some of your file permissions after FTPing over your wordpress files.

    Changing File Permissions WordPress Codex
    {{ DiscussionBoard.errors[1918065].message }}

Trending Topics