• bcjhood

    (@bcjhood)


    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Have you reviewed Moving_WordPress?

    Thread Starter bcjhood

    (@bcjhood)

    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?

    Andrew Bartel

    (@andrew-bartel)

    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: https://codex.www.ads-software.com/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: https://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.

    Thread Starter bcjhood

    (@bcjhood)

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

    Andrew Bartel

    (@andrew-bartel)

    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.

    blacklinemedia

    (@blacklinemedia)

    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).

    https://www.ads-software.com/plugins/wp-clone-by-wp-academy/

    https://www.ads-software.com/plugins/duplicator/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Questions about migration process to another host’ is closed to new replies.