Migration Steps
- Export DB:
mysqldump -u wpuser -p wpdb > export.sql - Transfer files:
rsync -avz /var/www/wordpress/ root@NEW_IP:/var/www/ - Import DB on new server
- Update wp-config.php credentials
- Configure Nginx + install SSL
- Switch DNS
⚠️ Don't switch DNS until you've verified the site works on the new server IP via /etc/hosts.