Domain Registration

WordPress Website Migration from Amazon LightSail to Bluehost

Migrating a WordPress website from Amazon Lightsail to Bluehost involves several steps. Here’s a step-by-step guide to ensure a smooth migration:

 

Step 1: Prepare Your Bluehost Account

  • Login to Bluehost: Access your Bluehost account dashboard.
  • Set up Hosting: Ensure your hosting environment is ready with a new domain or subdomain for the WordPress website.
  • Install WordPress: Use Bluehost’s one-click WordPress installer to create a fresh installation.

Step 2: Backup Your Lightsail WordPress Site

  1. Log in to Lightsail: Access your Lightsail console and identify the instance hosting your WordPress site.
  2. Access Your Instance via SSH: Open the terminal and connect to your Lightsail instance via SSH.

bash

Copy code

ssh -i Lightsail-Key.pem ubuntu@<Public-IP>

  1. Export Your Database:
    • Locate your database credentials in the wp-config.php file.
    • Run the following command to export your database:

bash

Copy code

mysqldump -u <DB_USER> -p <DB_NAME> > wordpress_db.sql

  1. Compress WordPress Files:
    • Navigate to the WordPress directory, usually /var/www/html.
    • Compress your WordPress files:

bash

Copy code

sudo tar -czvf wordpress_files.tar.gz /var/www/html

  1. Download the Backup Files:
    • Use SCP to transfer the files to your local machine:

bash

Copy code

scp -i Lightsail-Key.pem ubuntu@<Public-IP>:~/wordpress_files.tar.gz .

scp -i Lightsail-Key.pem ubuntu@<Public-IP>:~/wordpress_db.sql .

Step 3: Upload Files to Bluehost

  1. Log in to cPanel on Bluehost.
  2. Upload the Files:
    • Use the File Manager or an FTP client (e.g., FileZilla) to upload wordpress_files.tar.gz to the Bluehost directory (e.g., /public_html).
  3. Extract the Files:
    • Navigate to the File Manager, locate the uploaded file, and extract it.
  4. Import the Database:
    • In cPanel, go to phpMyAdmin.
    • Create a new database.
    • Import the wordpress_db.sql file into this database.

Step 4: Update Configuration

  1. Modify wp-config.php:
    • Update database credentials in the wp-config.php file:

php

Copy code

define(‘DB_NAME’, ‘new_database_name’);

define(‘DB_USER’, ‘new_database_user’);

define(‘DB_PASSWORD’, ‘new_password’);

define(‘DB_HOST’, ‘localhost’);

  1. Update Site URL:
    • Access phpMyAdmin and update the siteurl and home values in the wp_options table to match your new Bluehost domain.

Step 5: Test Your Website

  1. Preview Your Site:
    • Temporarily use Bluehost’s preview URL or modify your local hosts file to map the domain to Bluehost’s IP.
  2. Fix Any Issues:
    • Verify functionality, including plugins, themes, and permalinks.
    • Re-save permalinks under WordPress Settings > Permalinks.

Step 6: Update DNS

  1. Update Domain Nameservers:
  2. Wait for Propagation:
    • DNS changes can take up to 48 hours to propagate globally.

Step 7: Secure Your Site

  1. Enable SSL:
    • Use Bluehost’s SSL tool to enable a free SSL certificate.
    • Update the WordPress URL to use HTTPS.

Step 8: Final Testing

  • Verify the site works as expected.
  • Check for broken links or missing resources.
  • Monitor performance and traffic to ensure smooth operation.

Let me know if you need help with specific steps!

For further Assistance

https://www.upwork.com/freelancers/bilalkmk

Sample Authorization Letter for Domain Registration and Activation of .edu.pk

AUTHORIZATION LETTER 

Date: 02/12/2024 

To: 

PKNIC 

PKNIC Collection
435 Tariq Block, Garden Town
Lahore. Pakistan 

Subject: Authorization Letter for Domain Registration and Activation of “myschool.edu.pk” 

Dear Sir/Madam, 

I, Muhammad Ali, the Principal of New Standard High School, CNIC # 34102-xxxxxxx-x hereby formally authorize the registration and activation of the domain myschool.edu.pk under the ownership of New Standard High School (Pakistan) . 

Our institution has successfully completed the necessary requirements for the registration of this domain, and we confirm that all information provided to PKNIC regarding this domain is accurate and complies with your terms and conditions. 

We kindly request that you proceed with the activation of myschool.edu.pk at your earliest convenience. If further information or documentation is required, please do not hesitate to contact us using the details provided below. 

Contact Details: 

  • Name: Muhammad Ali
  • Designation: Principal 
  • School Name: New Standard High School 
  • Phone: [Insert Contact Number] 
  • Email: [Insert Email Address] 
  • Address: [Insert School Address] 

Thank you for your prompt assistance. We look forward to your confirmation regarding the activation of the requested domain. 

Sincerely, 

Muhammad Ali

Principal 

New Standard High School