to dir cp/wp plugin: duplicator process rev 9 jun 2021 (none) /samma-kammanta/Plugin-notes/duplicator-PROCESS.htmlSteps i take in transferring classicpress/wordpress websites using the most excellent Duplicator plugin. See duplicator-NOTES.html for plugin details and general how-tos. Steps summary: ↓ 0 Prep - owner notify; check logins; make can file. ↓ 1 Source cPanel: Prepare and backups. ↓ 2 Source wp-admin: Install Duplicator; Target cPanel: make database. ↓ 3 Source wp-admin: Run Duplicator. ↓ 4 Source⇒Target: Transfer Duplicator package to Target. ↓ 5 Target through browser: Unpack Duplicator package. ↓ 6 Target through browser: Check website. ↓ 7 Target CP/WP: Cleanup. ↓ 8 Target cPanel: Cleanup. ↓ 9 Cloudflare: Change ip; check SPF/DKIM records. ↓ 10 Website at Target: Check. ....................................................... Steps: * DOING tenzintsundue.com 13 jun pm: ......................... // 0. Prep: 0a. Email: Notify owner Freezing site for transfer, don't do any work. 0b. Check i have all cpanel and file transfer logins, and cloudflare/domain reg also if needed. If no have, ask site owner. 0c. File: Make can file for new hosting. This will make it easier to set up database, configure Duplicator, transfer files, and more. 0d. Cloudflare: disable proxy for www and bare domain. ......................... // 1. Prepare - cPanel, config files: 1a. Source: cPanel - Check anything else needed: forwarders? mail list? email accounts? - Check any subdomains - if they are flatfile, will need to copy them over manually. 1b. Source: cPanel - backups - Take backup of cPanel/site. cPanel → files → Backup: as individual ... - Home directory (including website files). - MySQL databases. - Email forwarders. Is saved as tar.gz and had trouble extracting, but not importing. Uses ; as separator, fix in cpanel. - Email filters. https://sitevalley.com/faq/cpanel-account-transfer.html Put them in domain.tld/Domain/Backups/cpanel/ n/a 1c. Source: cPanel - mail list - Backup any mail list. cPanel → Email → Mailing Lists n/a 1c. Source: cPanel - mail accounts - ... cPanel → Email → ... https://duckduckgo.com/?q=how+to+transfer+a+cpanel+email+account+to+another+host https://www.hostwinds.com/guide/how-do-i-transfer-email-accounts-to-new-server/ https://buckleupstudios.com/easily-move-an-email-account-from-one-cpanel-server-to-another/ https://www.how2lab.com/internet/email/moving-emails-cpanel.php 1c. Source: cPanel - other - Copy any redirects if not in .htaccess file. cPanel → Domains: Redirects - Check if any Addon domains - cPanel → Domains - Check if any Subdomains - cPanel → Domains - Check if any Apache Handlers - cPanel → Advanced - Check if any Cron Jobs - cPanel → Advanced 1d. Source: SFTP|cPanel Check/Get copy of .htaccess and wp-config files. half hour. ......................... // 2. Prepare - Duplicator: 2c. Source: wp-admin - plugins→ Add new Install Duplicator plugin on source website. 8.40 pm 2b. Target: cPanel→ MySQL Databases - Make new database using name and creds from wp-config. - db and username may have different prefix if target is an add-on and not a cpanel account. Or if you have made cpanel account with different username. - Leave the new database empty. ......................... // 3. Make Duplicator package // It puts the package in /wp-content/backups-dup-lite 3a. Source: wp-admin plugins→ duplicator 3b. If you have wp-config.php one level above, it finds it when it builds the package, and places it into docroot in the install. 3c. Make package. ......................... // 4. Transfer package to Target: Source to local: 4a. scp both files: Installer, and Archive, to local Domain/Backups/duplicator Local to Target site: 4b. Upload both files to docroot of target. or 4b. SSH in to Target and scp files from Source. But - good to have a copy on local anyway, for backup. ......................... // 5. Change dns: . Ideally, put iwf ip number in hosts file and go in browser But turns out iWF implements HSTS, and it's too much hassle to change that. - So: - upload an 'under maintenance' index.html (using 'server.worldbridges.us') Template at tenzintsundue.com - change ip at cloudflare dns: 192.154.203.20 ......................... // 6. Unpack at Target: 6a. Access domain.tld/installer.php 6b. It will do tests to make sure everything will work. This is great - for each item it gives drop-down explanation with fixes for problems. 6c. Resolve any failed tests. 6d. Settings: - keep orig .htacess file, prevent Duplicator from modifying it: Installer → Step 1 → Options → Advanced → Config Files: "Restore Original". You may need to edit .htaccess after install. OR maybe better let it make new .htaccess and wp-config, and then check local copy, edit if needed, and upload. - keep orig file times! Installer → Step 1 → Options → Advanced → File Timess: "Original". 6e. Next: Enter db credentials and test connection. 6f Unpack! 6g REMEMBER to scp any files that you excluded from package! ......................... // 7. Check site on Target: 7. View in browser. - REMEMBER to change cloudflare dns settings back to proxy after all working! ......................... // 8. Cleanup - CP/WP on Target: 8a. Log in to admin. 8b. installer file cleanup 8c. Remove entry from hosts file. 8d. compare with site from Source ......................... // 9. Cleanup - cPanel on Target: 9a. restore forwarders, mail filters: cPanel → files → Backup: Backup Wizard. 9b. restore redirects: 9c. restore mail list: ......................... // 10. Change ip to Target ip at dns: 10a. Cloudflare, or registrar. 10b. Check Email Deliverability config - cPanel → Email and change at Cloudflare/registrar dns. ......................... // 11. Check live site: 11a. ... _______________________________________________________ ➽ Use / how-to docs: See duplicator-NOTES.html _______________________________________________________ begin 2 jun 2021 -- 0 --