Migrate WordPress to VPS: Step-by-Step Guide

WordPress · 29.01.2025
Migrate WordPress to VPS: Step-by-Step Guide

Migration Steps

  1. Export DB: mysqldump -u wpuser -p wpdb > export.sql
  2. Transfer files: rsync -avz /var/www/wordpress/ root@NEW_IP:/var/www/
  3. Import DB on new server
  4. Update wp-config.php credentials
  5. Configure Nginx + install SSL
  6. Switch DNS
⚠️ Don't switch DNS until you've verified the site works on the new server IP via /etc/hosts.
← Back to Knowledge Base Ask Support