If you're not using a system like WordPress Toolkit for staging, you can still easily clone sites!
This assumes you're using DirectAdmin or similar, and have Reseller+ access.
[PROD] Current site (example): fibreopticcabling.com (Source)
[DEV] New website (example): focdev.agency.net.au (Target)
HERE BE DRAGONS - DO NOT PROCEED UNTIL YOU HAVE READ AND UNDERSTOOD THIS ENTIRE SUPPORT ARTICLE:
- WARNING #1: Take a full SQL backup before performing ANY operations via phpMyAdmin - NO EXCEPTIONS!
- WARNING #2: SQL modifications (via WP Plug-in & phpMyAdmin) can be dangerous. Uncomfortable? We can help.
Export the PROD website, then import it as a DEV site:
- [PROD] Login to the WordPress Admin GUI
- You'll need sufficient rights/role to add plugins
- [PROD] Install & open the Duplicator plugin
- Create an archive, to be complete including database
- Download the completed archive and installer.php file
- For security, deactivate & remove Duplicator [PROD]
- [DEV] Login to the Hosting Account
- We recommend DirectAdmin (DA)
- [DEV] Create a DB and Database User
- Grant the DB to the new DB User
- Note down the name & credentials
- [DEV] Open the File Manager, to public_html
- Upload the Duplicator archive files
- [DEV] Navigate to example.com/installer.php etc.
- Complete the restoration process
- This will need the DB information
- Also, ensure use of DEV domain!
- [DEV] Finalise the Restoration process
- Check wp-config.php for URLs
- Check WP General Configuration
- Media Storage, php.ini, etc, verify
Having problems with PROD domain redirects via DEV?
Login to your DEV WP-Admin and install the "Better Search Replace" plugin to finalise changes in the database:
Better Search Replace (WP): You'll need to run all the following queries, after dry runs come back looking OK.
- //www.fibreopticcabling.com [PROD] > //focdev.agency.net.au [DEV]
- //fibreopticcabling.com [PROD] > //focdev.agency.net.au [DEV]
- http://focdev.agency.net.au > https://focdev.agency.net.au
- fibreopticcabling.com [PROD] > focdev.agency.net.au [DEV]
- www.fibreopticcabling.com [PROD] > focdev.agency.net.au [DEV]
ORDER OF EXECUTION: Please complete them as numbered above!
- PLEASE NOTE: Search & Replace is dangerous - BE CAREFUL!
- BACKUPS: Always verify a backup before any SQL works
- UNINSTALL: Please DELETE 'BSR' PLUGIN afterwards
You should now be able to browse your PROD and DEV websites separately, and work on your new development site!
Questions? That's what we're here for!
Let our Tech Support team know so they can give you a hand.
