jbQ Media

Web Design, SEO Services and Media Production | Boston | Suffolk | MA

(917) 861-1242
  • Home
  • About
    • Why Us
    • Jon Burr | Site Designer
    • Our Rates
    • Contact
    • Our Location
    • News via Twitter
  • Our Services
    • WordPress Training
    • WordPress Site Design
    • Website Multimedia Production Services
    • Website Editorial Services
    • SEO Services
    • Online SEO Coaching Services via Zoom
    • Wix SEO Tutorial Services
    • CD Covers and Packages
  • Website Portfolio Gallery
  • Articles
  • Reviews
You are here: Home / Tutorials / Moving a Live Wordpress Site to Local with Mamp Pro

Moving a Live WordPress Site to Local with Mamp Pro

August 19, 2017 By Jon Burr

Moving a live WordPress site to a MAMP Pro custom local host is something WordPress Mac developers are going to need to do sooner or later.

(If you’re going from local to a live server, see this post)

There are tutorials, some are generally helpful, but after reading them, and 7 hours of trial and error, having to reinstall MAMP Pro three times, and having just about everything possible go wrong, I have some experience to share on how to do this.

The particular conditions I’m confronting, vs what I read about in tutorials about a single local site in MAMP, are as follows:

  • I expect to need to do this again, so I need MAMP Pro’s multiple host and custom naming capability
  • I’ll need multiple local dev sites
  • I’ll have to cope with SSL – I’ll be taking all my sites that direction from this point.

Step one – Use Duplicator to Export the Live Site

The WordPress plugin Duplicator is a terrific tool. The defaults work pretty well. You don’t have to fill in the database info when creating your package – you get another shot at those fields during the local install process (see the callout – you will need them!).

Problems can arise when creating the package, most often when the site has a huge uploads archive, or a gallery plugin with a gallery folder. These can be filtered out when creating the package. The filters can exclude giant folders – or unwelcome folders such as /cache/ –

File Filter in Duplicator Package Builder

The links on the right will pre-populate your local file path

Download the install file and the archive, and put them in your local site-directory-to-be.

Step Two – Set up the local site in MAMP Pro

You could do this step first. (The order of these first two steps doesn’t matter.)

Checklist – collect this, or create it – before you start.

  • database name
  • database user name
  • database user password
  • local url
  • local directory pathway
  1. Create a host in MAMP Pro.
  2. Set the host’s directory to your local site’s folder.
  3. Create a database.
    –>Copy the name into a text document in your code editor – keep it handy.
  4. At the bottom of the window of the Database tab are buttons that open phpMyAdmin and Sequel Pro. Open Sequel Pro.
  5. Open the database with the dropdown in the upper left of the Sequel Pro start window.
  6. Add a user. Make sure you go to the second tab in the user screen (Global Privileges) and check all.
    —>Save a note of the name, and put it into your text document with the database name.
  7. Give the user a password.
    —>Save a note of it as well… you’ll be using these three items to connect WordPress to the database when you run the Duplicator installer.
  8. You’ll use your new local hostname in the url. The Duplicator installer will sniff it, and your new url will show up in the Duplicator installer options screen. You may also want to verify the local file path, although Duplicator does a good job with this as well.

To get your local file path, in the Finder, right- or control- click on the folder to get info, and press the option key to see “copy [folder name] as path”. Copy it, and save a note of it with the other information you’ll need.

Are you using SSL?

If so, now’s the time to create a self-signed certificate (see the documentation here). Store it locally.
(I had things fail and break bad before I took this step, trying to create a local copy of a live site that uses SSL).
Another thing to remember – activate SSL in your local site via the SSL tab in MAMP when the servers are running. If you do it before you turn on the server, you’ll get a message that Apache can’t start.

Step Three: It’s time to run the Duplicator installer.

I’ve seen some horribly inadequate tutorial about this step, and it cost me many hours to find the solution.
They say “open the file install.php in a browser.” That’s easy for YOU to say… the browser didn’t see it, wouldn’t open it, and I had absolutely no idea what URL to use to try to locate it, and there was no information ANYWHERE.
Here’s what you do..

  • In the “Apache” tab in MAMP Pro, check “indexes.” After you do that, you’ll see a file list in the browser when you hit the little “go to directory” arrow.
  • There’s your installer file! You should also see your archive listed. (don’t open it – the installer will take care of everything).
  • Click “install.php”. Your Duplicator installer will start to run.
  • Enter your database information. Use the “check database” button, verify you have a connection to the database. Let it overwrite your database in case you already put something in there (back everything you might need up first!)
  • If the installation does not succeed, it’s probably due to a plugin conflict. Prime suspects are Wordfence, Captcha, and Caching plugins. You can deactivate plugins in the Installer’s Advanced Options Tab.Before your second try,  make sure to clean out invisible files from your local site folder (more here).
  • Login with your WP credentials from the live site. Run the cleanup tools at the prompts.

And there you have it.

Related Posts:

  • Creating a Glossary for a WordPress Site with ChatGPT AI We created a custom glossary for a WordPress music arranging…
  • Wix SEO Tutorial Services Lots of options and many things to do! Welcome to…
  • Why SEO is Better than Paid Google Ads Search engine optimization (SEO) and paid Google ads (PPC) are…
  • Online SEO Coaching Services via Zoom We Offer Expert Zoom Tutoring in SEO! Unlock the Power…
  • CD Covers and Packages Collected past work from a variety of projects we did…

Filed Under: Site Migration, Tutorials, Useful Tools, Website Design, Wordpress

Site Search

Our Services

  • WordPress
  • SEO
  • Strategy
  • Consulting
  • Website Design
  • Useful Tools
  • Tutorials
  • Editorial

Recent Articles

  • Why SEO is Better than Paid Google Ads
  • Creating a Glossary for a WordPress Site with ChatGPT AI
  • Converting WordPress Widgets for use in the Block Editor
  • How to Change the Styling of a Column in the WordPress Block Editor
  • Connecting Calendly to Zoom
  • Upgrading an old HTML site with a WordPress blog to WordPress
  • WordPress 5.0 and Gutenberg – What it Means for Genesis Themes
  • Migrating a WordPress Site if Wordfence is Installed, Using Duplicator and MAMP
  • Keeping up with Google’s New Features – SSL, AMP, and Google Posts
  • Adding a full-width responsive header in a Genesis theme (January 2018)
  • LBS Markets Mystery Shopper Fraud
  • Basic SEO In Six Steps
  • Navigating Google My Business, Google Brand Accounts, and Google+
  • SEO Tools Test Drive and Comparison
  • SEO Training | Tutorial | Boston | Suffolk County MA
  • SEO Tools, Links and Learning
  • Certified Google Trusted Photographer | Boston MA
  • Social Media Marketing Services | Facebook Ads Services | Boston | Suffolk County MA
  • What Does SEO Cost?
  • Moving a Live WordPress Site to Local with Mamp Pro

Contact us now! :)

Why delay? Initial consultation is on the house!

call (917) 861-1242

    Your First Name (required)

    Your Last Name (required)

    Your Email (required)

    (please double-check it!)

    Subject

    Contact from jbQ Media Website

    Your Message

    *required


    Subscribe me your mailing list

    Human?*

    • Production
    • WordPress Sites
    • Strategy
    • SEO
    • Websites
    • Editorial
    • Contact
    • Terms of Service
    • Cookie policy

    © 2014 jbQ Media

    Google+
    Manage Cookie Consent
    We use cookies to optimize our website and our service.
    Functional cookies Always active
    The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
    Preferences
    The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
    Statistics
    The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
    Marketing
    The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
    Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
    View preferences
    {title} {title} {title}