how to migrate a site from localhost to server?

Hi!

I have been a long-time member of WPMUDEV and I absolutely love it. It's definitely worth the money. I have one question, though.

I though I was doing the right thing by using MAMP to create my website before going live; in the past, I've been hacked before even getting things up and running; so, this way, I thought I'd have a safe copy on my computer that I could mirror on the live server and use as a quick backup if things go badly. Now, I'm realizing that it's more difficult to transfer the localhost version to the live server than I thought.

I currently have a multisite with the main site running buddypress. Is there a relatively efficient way to migrate, mirror, or transfer the localhost site to the live server while keeping in tact all the images, edits I've made to the plugins, and content?

Thank you immensely,
Christian

  • Timothy
    • Chief Pigeon

    Hey there,

    Thanks for the kind words.

    Moving a site is pretty easy to do, it does however seem a little daunting the first time though. :slight_smile:

    It's really a case of moving the files over to your host, then taking a dump of the DB. You can run a find and replace on the the dump to change the domain/paths.

    Once done just import it to your new MySQL server.

    You'll always want to check your htaccess and wp-config file making any needed changes.

    You can read more on that here:

    https://premium.wpmudev.org/blog/how-to-safely-move-wordpress/

    Another option could be using our Snapshot plugin to backup and then restore on the new site. I would imagine this is a little more messing around though as you first need to set up the other site in order to restore:

    https://premium.wpmudev.org/project/snapshot/

    If you get stuck then just let us know.

    Have a great day!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.