Migrating a WordPress website from GoDaddy Managed WordPress Hosting to Amazon Lightsail 

Published on:

November 17, 2026

Migrating a WordPress website from GoDaddy Managed WordPress Hosting to Amazon Lightsail WordPress Hosting involves several key steps: backing up your site, setting up your new Lightsail instance, migrating your content, pointing your domain, and securing it with an SSL certificate.

Here's a step-by-step guide:

Phase 1: Backup Your GoDaddy WordPress Site

1. WordPress Dashboard Backup (Recommended):

Log in to your WordPress admin dashboard on your GoDaddy site.

Install a migration plugin like All-in-One WP Migration or UpdraftPlus. These plugins simplify the process of backing up your entire site (database and files) and restoring it on a new server.

Follow the plugin's instructions to create a complete backup of your website. Download the backup file(s) to your local computer.

Alternatively (Manual Backup - More Complex):

1. Backup Files via FTP/SFTP:

  • Get your FTP/SFTP credentials from GoDaddy.
  • Use an FTP client (like FileZilla) to connect to your GoDaddy hosting.
  • Download all files and folders from your WordPress installation's root directory (often public_html or a folder named after your domain) to your local computer.

2. Export Database via phpMyAdmin:

  • Log in to your GoDaddy cPanel or hosting dashboard.
  • Find and open phpMyAdmin.
  • Select your WordPress database from the left sidebar.
  • Go to the Export tab.
  • Choose the "Custom" export method.
  • Ensure "SQL" is selected as the format.
  • Select all tables.
  • Check "Add DROP DATABASE" if you want to ensure a clean import on Lightsail (be cautious with this if you're not sure).
  • Click "Go" to download the .sql file to your local computer.

Phase 2: Set Up Your Amazon Lightsail WordPress Instance

Create an AWS Account (if you don't have one): Go to aws.amazon.com and sign up.

Navigate to Lightsail: Once logged in to AWS, search for "Lightsail" in the services search bar and go to the Lightsail console.

Create a New Instance:

  • Click "Create instance."
  • Choose your instance location (Region and Availability Zone): Select a region closest to your target audience.
  • Select your platform: Choose "Linux/Unix."
  • Select a blueprint: Choose "WordPress." Lightsail provides a pre-configured WordPress blueprint, often managed by Bitnami, which simplifies setup.
  • Choose your instance plan (bundle): Select a plan that suits your website's needs. You can upgrade later if necessary.
  • Identify your instance: Give your instance a memorable name (e.g., yourwebsite-wordpress).
  • (Optional) Enable Automatic Snapshots: This is highly recommended for regular backups.
  • Click "Create instance."

Get WordPress Admin Password:

  • Once your Lightsail instance is running, click on its name to go to the instance management page.
  • On the "Connect" tab, you'll see a section for "Default user and password."
  • Click "Retrieve default password" and follow the instructions to launch the CloudShell and get your WordPress admin password. Make a note of this.

Access WordPress Admin:

  • On the instance management page, under the "Connect" tab, click "Access WordPress Admin."
  • This will take you to your new WordPress login page on Lightsail. Use user as the username and the password you just retrieved.
  • You'll see a default WordPress installation.

Phase 3: Migrate WordPress Content to Lightsail

Option A: Using a Migration Plugin (Recommended)

  • On your new Lightsail WordPress site, install the same migration plugin you used for backup (e.g., All-in-One WP Migration or UpdraftPlus).
  • Go to the plugin's import/restore section.
  • Upload the backup file(s) you downloaded from your GoDaddy site.
  • Follow the plugin's prompts to complete the restore. This will overwrite the default Lightsail WordPress installation with your GoDaddy site's content.
  • After the restore, you may need to re-login with your original GoDaddy WordPress admin credentials.
  • Crucial Step: After migration, navigate to Settings > Permalinks in your WordPress dashboard and simply click "Save Changes" (you don't need to change anything else). This refreshes your permalink structure for the new server environment.

Option B: Manual Migration (Files and Database)

Connect to Lightsail via SSH/SFTP:

  • On your Lightsail instance management page, go to the "Connect" tab.
  • Download your default SSH key (e.g., LightsailDefaultKey-us-east-2.pem) if you haven't already.
  • Use an SSH client (like PuTTY on Windows, or the built-in terminal on macOS/Linux) or an SFTP client (like FileZilla) with your Lightsail instance's public IP address, bitnami as the username, and your .pem key for authentication.
  • The WordPress files are typically located at /opt/bitnami/wordpress or /opt/bitnami/apps/wordpress/htdocs/.
  • Delete the default WordPress files and folders (except wp-config.php and bitnami folders/files if they exist and are important for Lightsail configuration).
  • Upload all the WordPress files you downloaded from GoDaddy into the correct WordPress root directory on Lightsail.

Import Database:

  • Connect to your Lightsail instance via SSH.
  • Access MySQL: sudo mysql -u root -p (the password for root is usually found using cat /home/bitnami/bitnami_application_password or similar command on the instance, or you might have set one during Lightsail setup).
  • Create a new database for your WordPress site: CREATE DATABASE your_new_database_name;
  • Grant privileges to a new user (or use the existing bitnami user if you prefer):

CREATE USER 'your_new_username'@'localhost' IDENTIFIED BY 'your_new_password';

GRANT ALL PRIVILEGES ON your_new_database_name.* TO 'your_new_username'@'localhost';

FLUSH PRIVILEGES;

EXIT;

  • Import your GoDaddy database .sql file: mysql -u your_new_username -p your_new_database_name < /path/to/your/database.sql (you'll be prompted for the password). Update wp-config.php: Edit the wp-config.php file in your WordPress root directory on Lightsail using SSH (e.g., sudo nano /opt/bitnami/wordpress/wp-config.php). Update the DB_NAME, DB_USER, and DB_PASSWORD constants to match the new database credentials you created on Lightsail. Save the changes.
  • Update Site URLs in Database: This is critical. If your domain name is changing or was temporary on GoDaddy, you need to update the URLs in your WordPress database. Connect to MySQL via SSH again. Run the following SQL queries, replacing olddomain.com with your GoDaddy domain and newdomain.com with your Lightsail domain (initially, this might be your Lightsail IP address or default domain for testing):1 SQL UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com'); UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com'); UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://olddomain.com', 'http://newdomain.com'); (Adjust wp_options, wp_posts, etc., if your table prefix is different). Exit MySQL.
  • Refresh Permalinks: Log in to your WordPress admin dashboard (using the Lightsail IP for now) and go to Settings > Permalinks, then click "Save Changes."

Phase 4: Point Your Domain to Lightsail

Get Lightsail Static IP:

  • In the Lightsail console, navigate to the "Networking" tab.
  • Create a "Static IP" and attach it to your WordPress instance. This ensures your instance's IP address doesn't change if you restart it. Note down this Static IP.

Update DNS Records at GoDaddy:

  • Log in to your GoDaddy account.
  • Go to your "Domain Portfolio" and select the domain you want to use.
  • Find the "DNS" or "Manage DNS" section.
  • Option A: Keep GoDaddy DNS (Simpler for many):

a. Edit or add an A record for @ (your apex domain, e.g., yourdomain.com) and point it to your Lightsail Static IP.

b. Edit or add a CNAME record for www and point it to @ or directly to your Lightsail Static IP (some GoDaddy setups allow CNAME to A record alias).

c. Set the TTL (Time To Live) to a lower value (e.g., 600 seconds or 3600 seconds) to speed up propagation.

  • Option B: Migrate DNS to Lightsail (More integrated with AWS):

a. In Lightsail, go to the "Domains & DNS" tab.

b. Click "Create DNS zone" and enter your domain name.

c. Lightsail will provide you with a set of Nameservers (e.g., ns-xxx.awsdns-xx.org).

d. In GoDaddy, go to your domain's DNS settings and change the Nameservers to the ones provided by Lightsail.

e. Once DNS propagation starts, GoDaddy will no longer manage your DNS.

f. Back in Lightsail DNS zone, create an A record for @ pointing to your Lightsail Static IP.

g. Create a CNAME record for www pointing to @ (your apex domain).

h. Allow for DNS Propagation: DNS changes can take a few minutes to up to 48 hours to propagate across the internet. You can check the propagation status using tools like whatsmydns.net.

 

Phase 5: Install SSL Certificate on Lightsail

Lightsail WordPress instances (Bitnami) come with a tool to easily install Let's Encrypt SSL certificates.

Connect to your Lightsail instance via SSH.

  • Run the Bitnami HTTPS Configuration Tool (bncert-tool):
  • Type the following command and press Enter:
  • Bash
  • sudo /opt/bitnami/bncert-tool
  • The tool will guide you through the process:
  • It will ask for your primary domain (e.g., yourdomain.com) and any alternate domains (e.g., www.yourdomain.com). Enter these carefully.
  • It will ask if you want to redirect HTTP to HTTPS, www to non-www (or vice-versa). Select "Yes" for HTTPS redirection.
  • It might ask you to create TXT records for domain validation if your DNS isn't yet pointing to Lightsail or if you're using Lightsail DNS but haven't updated GoDaddy Nameservers. If so, follow the instructions to add the TXT records in your GoDaddy DNS (or Lightsail DNS if you migrated it) and then press Enter in the SSH terminal to continue the process.
  • The tool will automatically handle the certificate request, installation, and renewal process (Let's Encrypt certificates need renewal every 90 days, which bncert-tool automates).

Verify SSL Installation:

  • Once the tool finishes, try accessing your website using https://yourdomain.com. You should see the padlock icon in your browser,

Update WordPress General Settings:

  • Log in to your WordPress admin dashboard on your Lightsail site.
  • Go to Settings > General.
  • Change both the WordPress Address (URL) and Site Address (URL) to use https:// (e.g., https://yourdomain.com).
  • Click "Save Changes." This will likely log you out, and you'll need to re-login to the HTTPS version of your site.

Install a "Really Simple SSL" plugin (Optional but Recommended):

  • Even with the bncert-tool and wp-config.php changes, sometimes "mixed content" warnings can appear if some images or resources are still loading via HTTP.
  • Install and activate the "Really Simple SSL" plugin. It will automatically detect your SSL certificate and help rewrite any remaining HTTP links to HTTPS.

Final Checks:

Test all pages and functionalities: Click through your entire website to ensure everything is working correctly, including forms, images, links, and plugins.

Clear Caches: Clear any caching plugins on your WordPress site.

Deactivate Old GoDaddy Hosting: Once you are completely satisfied that your site is running perfectly on Lightsail and your domain is pointing correctly, you can cancel your GoDaddy Managed WordPress hosting.

This process can be complex, and unexpected issues can arise. If you encounter difficulties, consult the AWS Lightsail documentation or consider using a professional migration service. Always have a complete backup before making significant changes.