WordPress.org

Ready to get started?Download WordPress

Forums

Questions about migration process to another host (7 posts)

  1. bcjhood
    Member
    Posted 8 months ago #

    I have an account at the new host and wordpress installed. I have the database exported from my old host and ready to import to the new one.

    My question is what is the order for moving everything over? What's first, the database or all the wp_ files? Or the theme?

    I've tried following several tutorials but I get all sorts of problems. I think I've complicated things by using the Better WP Security plugin to rename the content directory and database prefixes, which also modifies the wp_config file.

    So should I install Better WP Security first and configure it the same way before importing the database and replacing the wp_ files? That won't work with the database tables because it names them randomly and they won't match.

    I feel way in over my head right now. I've waded into a complicated mess that keeps getting more complicated.

  2. esmi
    Forum Moderator
    Posted 8 months ago #

    Have you reviewed Moving_WordPress?

  3. bcjhood
    Member
    Posted 8 months ago #

    Yes, that doesn't address any of my problems. And it doesn't tell you what wordpress files to move. Do I just take the entire html directory?

  4. Andrew Bartel
    Member
    Posted 8 months ago #

    You need to move all the files that are associated with WordPress. Did you install WordPress in a subdirectory? If not then it's probably the contents of the html directory. That's the wp-admin, wp-includes and wp-content (or what BWPS named it) directories and everything listed here in the WordPress root area: http://codex.wordpress.org/WordPress_Files

    These files should be put in your web root, usually called public_html on shared hosting, unless you installed WordPress in a sub directory. If you don't know what that is, then you didn't, it's all good.

    Then you need to migrate your database. You can get an export from phpmyadmin, which most hosts will provide for you.

    If you're moving to a new url, you will also need to run a find and replace on your database, this script does a nice job: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Make sure you make a backup of your database before running it and delete it after you use it.

    Does that all make sense? Happy to explain more. Btw, Esmi's link does contain all the information you need, but I understand that it can be a bit overwhelming if you're not a developer or used to this sort of thing.

  5. bcjhood
    Member
    Posted 8 months ago #

    Thanks. Should I install all the same plugins before moving anything?

  6. Andrew Bartel
    Member
    Posted 8 months ago #

    Nope, what you move will contain the plugins and all of WordPress core as well as your themes. The database will contain the options you've saved for the plugins and the record of which ones are activated.

  7. blacklinemedia
    Member
    Posted 8 months ago #

    Hi I would just use a cloning plugin like Duplicator or WP Clone. Makes the transfer process quick and painless (takes a maximum of 10 min).

    http://wordpress.org/plugins/wp-clone-by-wp-academy/

    http://wordpress.org/plugins/duplicator/

Reply

You must log in to post.

About this Topic