1. Websta Hosting
WordPress & One-Click Installs

How to Migrate a WordPress Site to Your Hosting

How to Migrate a WordPress Site to Your Hosting

Method 1: Using a Migration Plugin (Recommended)

Plugins: All-in-One WP Migration, Duplicator, or Migrate Guru.

  1. Install the plugin on your source (old) site.
  2. Export the site — this creates a single archive file.
  3. Install WordPress fresh on your new hosting via Softaculous.
  4. Install the same migration plugin on the new site.
  5. Import the archive file.

Method 2: Manual Migration

Step 1: Export the Database

On the old host:

mysqldump -u dbuser -p dbname > wpdump.sql

Or via phpMyAdmin: select database → Export → Quick → Go.

Step 2: Copy Files

Download all files from public_html/ via FTP to your computer, then upload to the new host.

Step 3: Create a New Database

In DirectAdmin, create a new database and user.

Step 4: Import the Database

mysql -u newdbuser -p newdbname < wpdump.sql

Or via phpMyAdmin → Import.

Step 5: Update wp-config.php

Edit public_html/wp-config.php:

define('DB_NAME', 'newusername_dbname');
define('DB_USER', 'newusername_dbuser');
define('DB_PASSWORD', 'newpassword');
define('DB_HOST', 'localhost');

Step 6: Update Site URL

If the domain has changed, run in phpMyAdmin:

UPDATE wp_options SET option_value = 'https://newdomain.com' WHERE option_name IN ('siteurl', 'home');

Or via WP-CLI:

wp search-replace 'https://olddomain.com' 'https://newdomain.com' --all-tables
Still need help?

If this article didn't answer your question, our support team can help.

Contact support
All articles More in WordPress & One-Click Installs