Fixing Duplicator Backup Issues in LocalWP, XAMPP & WAMP
When migrating a WordPress site from a local environment (LocalWP, XAMPP, or WAMP) to a live server, many developers use the Duplicator plugin.
But sometimes Duplicator refuses to create a backup.
Most of the time, the issue isn’t WordPress… it’s actually your local server configuration.
Why This Happens
Local environments often have stricter PHP limits by default.
Duplicator needs enough memory, execution time, and proper server extensions to package your site.
If those limits are too low, the backup fails.
⚠️ Common Issues
1️⃣ Missing Server Tools
Some LocalWP setups don’t have running required PHP-extensions like:
ZipArchiveShellExec- Other archive-related modules
Without these, Duplicator can’t build a proper package.
2️⃣ PHP Limits Too Low (Most Common Issue)
LocalWP and XAMPP often run with conservative defaults:
- Low
memory_limit - Short
max_execution_time - Small upload limits
Large websites (especially over 500MB) will hit these limits quickly.
3️⃣ File Permission Problems
Duplicator needs write access to folders like:
/wp-snapshots/
If it cannot write to that directory, the backup process stops.
4️⃣ Site Too Large (Free Version Limitation)
The free version of Duplicator may struggle with:
- Large media libraries
- Heavy themes/plugins
- Databases with large exports
In those cases, adjusting limits — or using a different back-up archive engine like DupArchive — helps.
The thing is DubArchive doesn’t support big sites with a huge framework or many media files so if you
think your site is +500mb please go to > Final Advice.
🛠️ How to Fix It (LocalWP Method)
Step 1: Increase WordPress Memory Limit
In LocalWP:
Go to:
Site → Tools → Open Site Shell
Then run:
wp config set WP_MEMORY_LIMIT 256M --type=constant
You should see:
Success: Added the constant 'WP_MEMORY_LIMIT' to the 'wp-config.php' file with the value '256M'.
This increases WordPress memory allocation.
Step 2: Increase PHP Limits (php.ini Method)
If the issue persists, update your php.ini file.
This works in:
- XAMPP
- WAMP
- LocalWP (if shell method isn’t enough)
Edit your php.ini:
memory_limit = 256M
max_execution_time = 300
upload_max_filesize = 128M
post_max_size = 128M
Then:
✔ Save the file
✔ Restart Apache
✔ Restart LocalWP (if applicable)
These settings give Duplicator more room to build the archive.
🧰 Alternative: Use DupArchive Instead of ZIP
If ZIP creation keeps failing (often due to ZipArchive issues), switch to DupArchive:
Go to:
Duplicator → Settings → Backups
Backup Engine → Enable DupArchive
DupArchive is often more stable in restricted local environments.
> Final Advice
If Duplicator fails locally, don’t assume your site is broken.
In most cases, the solution is:
- Increase memory
- Increase execution time
- Restart services (from the server you are running WordPress on)
- Switch to DupArchive (costs less memory)
- Pro-version is necessary in your environment
Once the limits are properly configured, migration from local to live usually works without issues.
Chance is that it’s still not fixed and you’ll need the Pro version and this version will more easily create a ZIP back-up since it uses all cores. But since it’s a yearly subscription and you first want to test it locally.
https://www.wplocker.com/plugins-cat/67636689-duplicator-pro-v45243-wordpress-site-migration-amp-backup.html(do not use this version for the real migration to your "live WordPress site" on your online webserver since a random dev tweaked it - only for testing locally if it solves the problem)
🛡️Safe Local Migration Workflow
🌐 Overview of the Environments (3 local + 1 online)
| # | Environment | Purpose |
|---|---|---|
| #1 Main Site | Your original site | Source of truth, keep untouched |
| #2 Cloned Main Site | Local duplicate of #1 | Used to test the migration process |
| #3 New Local WordPress Install | Empty WordPress install | Destination for testing the import of #2 |
| #4 Real Online Site | Your live server | Final migration destination |
🔒 Step 1 — Protect Your Main Local Site (#1)
- Keep your main site stable and unchanged.
- Never test migration tools directly on it.
📝Step 2 — Create a Local Clone (#2)
- Set up a local environment (LocalWP, XAMPP, or WAMP).
- Copy your main site files locally.
- Now you have Cloned Main Site (#2) ready to test migration.
🆕 Step 3 — Set Up a Fresh Local Install (#3)
- Create a brand-new, empty WordPress site locally.
- Do not install any plugins or themes.
- This will act as your test destination.
⚙️ Step 4 — Test the Migration Locally
On Cloned Site (#2):
- Install the Duplicator Pro plugin.
- Create a backup package (archive + installer).
On New Install (#3):
- Upload the installer + archive.
- Run the installer and complete the migration.
✅ Verify if the:
- Files extract correctly
- Database imports successfully
- URLs update properly
- Site functions as expected
Once everything works, the migration process is verified.
♻️ Step 5 — Reset the Clone
- Delete Cloned Main Site (#2).
- Re-clone #1 Main Site to create a fresh local copy.
- This ensures no leftover test data or temporary configurations interfere with the real migration.
🚀 Step 6 — Final Migration to Live Site (#4)
- Install the official Duplicator plugin from duplicator.com on the fresh local clone (#2).
- Create the migration package.
- Upload the installer + archive to your live server (#4 Real Online Site).
- Run the installer and complete the migration.
This guarantees that:
- Your main site (#1) stays untouched
- The migration package is clean and official
- Your live site (#4) receives a verified, working copy
✅ Why This Workflow Works
- #1 Main Site — remains your safe source of truth
- #2 Clone — used for local testing without risk
- #3 Fresh Install — verifies the migration process
– Repeat 2 + 3 and now use Duplicator Pro from http://www.duplicator.com - #4 Live Site — receives a tested, official migration
This multi-step workflow minimizes financial risks,
prevents downtime, and ensures a secure
migration from local development
to a live environment.
Good luck — written by: Maikel van Esdonk and some A.I. tools for creating clear step-by-step text design.








Geef een reactie