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 / Site Migration / Migrating a Wordpress Site if Wordfence is Installed, Using Duplicator and MAMP

Migrating a WordPress Site if Wordfence is Installed, Using Duplicator and MAMP

November 17, 2018 By Jon Burr

Wordfence causes major problems in migration

even if it’s inactive when creating the export package.

Note: When doing a migration, all security, caching, Captcha, and login-renaming plugins should be deactivated. You can do this in the Duplicator installer, in the installer’s Advanced Options section – select “none”

It might be a good idea to completely exclude the plugins folder during export – they can be added back into the site during Step 4 of the Duplicator installation, with caution. It’s also a good idea to filter out the cache folder in wp-content, if present – another villain in the migration process.

If Wordfence is installed, there are 2 items that need to be excluded from the archive –

The plugin’s folder, and the file

wordfence-waf.php

The latter will cause the Duplicator installer to fail, every time… if it’s contained in the Duplicator archive.
You can either filter them and get fails, or go on to a manual install.

Duplicator File Filters

Duplicator File Filters . The links on the right pre-populate useful file paths.

If that’s not done, you’ll get a 500 error when running the Duplicator installer.

There may be other conditions that will cause Duplicator to fail…

Common causes are too many media files in

wp-content/uploads/

or custom folders created by plugins, such as NextGen’s

wp-content/gallery/

resulting in an archive that’s too big for the server to handle. These can be filtered and copied manually. Doing this will permit using an archive of the rest of the site during the migration, with those folders migrated manually, unstuffed into the newly created site after running the Duplicator installer in the target new container.

If you have not done this, you’ve had a failed installation, and still want to try to use your export package, do the following:

Manual Migration Using Duplicator Pro, in Eight Steps

1. Create a compressed archive of

public_html

(or whatever the live site container is) via cPanel File Manager or FTP and download it (cPanel down is faster than FTP).

2. In Duplicator>New Package> Archive, choose “Database Only”

3. Take the usual MAMP steps to create your local site – create host, local folder, database, user, password, and keep the credentials handy for use during installation

4. *Copy* the Duplicator .daf or .sit and installer.php into the new empty directory (you may need these again if you get a fail).
(Make sure “Indexes” is selected in the Apache tab of MAMP, and SSL is turned on and local certificate selected)

Note: After you create your export package and download it, always copy the installation files over to the target local container rather than move them – in case you get a fail and need to start over.

5. Unstuff the zip of your live site into a new folder (not the target folder) – have the folder open and ready to drag files over.
Prepare the unstuffed flies for copy – remove plugins:

  • Wordfence
  • Rename Login
  • Captcha

and the file:

wordfence-waf.php

(if present)

and the folder

cache

(if present)

Note: If this is a second (or later) attempt to install into the local container, there will be hidden files from previous attempts. The installer writes new

.htaccess

files into the directory, which will break subsequent install attempts if they’re still in the directory after you clean it out for a re-try. You might also see a .well-known hidden folder… delete it.
In order to delete them, you need to see them. In OSX Sierra and later, the keyboard shortcut command-shift-period will cause them to show. Alternatively, use Transmit to look at the local folder (it always shows hidden files) and use it to delete them. You can also view and edit them in BBEdit if your directory view filter is set to “Everything” (magnifying glass icon, lower left, under your project file list).

6. Start the installation; use the “go to site” arrow in MAMP to get to the site index page, click Installer.php.
Run it up through step 4. Pause to copy files over…
7. Before clicking “Log In To Site, copy all the live site files over except
wp-config.php (a new one has been created by the installer)

8. Then log in, as usual! You’re done!

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

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}