Migrating WordPress to a VDS
If you're moving from shared hosting to a VDS, this guide will help you migrate WordPress without data loss.
Method 1: All-in-One WP Migration Plugin
- Install All-in-One WP Migration on your old site
- Export the site to a .wpress file
- Install WordPress on the new VDS (LAMP/LEMP stack)
- Install the same plugin and import the file
- Update the site URL in WordPress settings
Method 2: Manual Migration
- Create a database dump:
mysqldump -u user -p dbname > backup.sql - Copy files via rsync or FTP
- Import the DB on the new server
- Update wp-config.php with new DB credentials
After migration, update your domain DNS records to the new VDS IP.