Just wait 3 second

0 %
Md Golam Abir
Web Designer
Wordpress Expert
  • Residence:
    Bangladesh
  • City:
    Dhaka
  • Age:
    25
Bangla
English
Hindi
html
CSS
WordPress
  • Elementor, Elementor pro.
  • Cpanel, Whm, CyberPanel
  • Linux Server Management

How to Manually Migrate a WordPress Website to New hosting

February 17, 2025

Migrating a WordPress website manually to a new host, such as New hosting, can seem like a daunting task, but by following a structured approach, the process becomes much easier. This guide outlines the step-by-step procedure to successfully transfer your website.

Step 1: Download Website Files

The first step in migration is to download all files associated with your website. To do this:

  1. Log in to your cPanel account.
  2. Navigate to File Manager and open the public_html directory.
  3. Select all files and compress them into a ZIP archive.
  4. Download the ZIP file to your local computer for safekeeping.

Step 2: Export the Database

WordPress stores most of its content in a database. Exporting the database ensures that your website’s data is preserved. Follow these steps:

  1. Access phpMyAdmin from your cPanel.
  2. Locate the correct database by checking the wp-config.php file.
  3. Select the database and click Export.
  4. Choose the Quick Export option and download the .sql file.

Step 3: Update DNS Settings

To ensure that your domain points to the new host:

  1. Log in to your domain registrar (e.g., Namecheap, GoDaddy).
  2. Navigate to DNS settings and update the Name Servers to New hosting’s DNS.
  3. Save the changes and allow time for propagation (this may take a few hours).

Step 4: Upload Files to New hosting

Once the website files are backed up, upload them to New hosting:

  1. Log in to your New hosting cPanel.
  2. Open File Manager and navigate to the public_html directory.
  3. Upload the ZIP file and extract its contents.

Step 5: Create a New Database

Since the old database is stored locally, you need to create a new one on New hosting:

  1. Go to Add User To Database in New hosting’s cPanel.
  2. Click Create Database and enter a database name, username, and password.
  3. Save these credentials for later use.

Step 6: Assign User Privileges

To ensure that the new database functions correctly:

  1. In New hosting’s Manage My Databases option, navigate to Add User To Database.
  2. Select the newly created database and user.
  3. Assign All Privileges to the user for full control over the database.
  4. Save changes and proceed.

Step 7: Import the Database

To transfer your website’s data:

  1. Open phpMyAdmin in New hosting’s panel.
  2. Select the newly created database.
  3. Click Import and upload the .sql file exported earlier.

Step 8: Update wp-config.php File

After the database is imported, you must update your site’s configuration:

  1. Locate wp-config.php in File Manager.
  2. Edit the file and update the database name, username, and password.
  3. Save changes and close the file.

Step 9: Verify the Website Migration

Once all steps are completed:

  1. Open your website URL to confirm it is working.
  2. Clear cache and test functionality to ensure proper migration.
  3. Troubleshoot any issues, such as broken links or missing media files.

Conclusion

By following these steps, you can manually migrate your WordPress website to New hosting without relying on plugins or third-party tools. This method ensures full control over your website files and database, making it a secure and efficient migration process.


✅ Change WordPress Site URL via phpMyAdmin✅

Step 1: Access phpMyAdmin

  1. Log in to your web hosting control panel (like cPanel, Plesk, etc.).
  2. Open phpMyAdmin under the Databases section.

Step 2: Select the WordPress Database

  1. In the left sidebar, click the database name used by your WordPress site.
  2. You’ll see a list of tables with prefixes like wp_ (e.g., wp_options, wp_users, etc.).

Step 3: Open the wp_options Table

  1. Click on the table called wp_options (or it might be {prefix}_options if you changed the table prefix).
  2. Look for the following two rows:
    • siteurl
    • home
    These are usually found in the first few rows (use the search or browse function if not visible).

Step 4: Edit siteurl

  1. Find the row with the option_name siteurl.
  2. Click the Edit (🖉) icon next to it.
  3. In the option_value field, replace the existing URL with your new WordPress URL (e.g., https://newdomain.com).
  4. Click Go to save.

Step 5: Edit home

  1. Find the row with the option_name home.
  2. Click the Edit icon next to it.
  3. Change the option_value to the same new URL.
  4. Click Go to save.

Step 6: Clear Caches (if applicable)

  • If you use caching plugins (like WP Super Cache, W3 Total Cache), clear the cache.
  • You may also need to clear your browser cache.

🧪 Optional: Update URLs in Posts & Pages

If the domain changed and you want to update all old URLs (like images or internal links), you can use a search and replace plugin like:

  • Better Search Replace
  • WP Migrate Lite
  • Or use SQL queries directly in phpMyAdmin (advanced)
Posted in WordPress, Web HostingTags: