Migrating WordPress to AWS

How to migrate your WordPress website from a hosted provider to AWS.

  1. Download all the website files from the hosted server.
  2. Export your MYSQL database (be sure to select the option to include all tables) into a .sql file
  3. Create a MYSQL database in AWS RDS
  4. Using a database client – run the .sql file you exported.
    1. If you want to use the table you created in RDS, delete this line:
      CREATE DATABASE IF NOT EXISTS <OLD DATABASE TABLE NAME> DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE <OLD DATABASE TABLE NAME>;
  5. Create a Ubuntu 16.04 AWS EC2 instance. Follow the directions here.
    1. Instead of installing the WordPress tarball, move all the website files you downloaded from the previous hosted server, to /var/www/html.
  6. Update the wp-config.php with the RDS database info.
    1. Under DB_HOST include :3306 after the RDS endpoint.
  7. Create a new Route53 hosted zone for your domain.
  8. Export your DNS hosted zone from GoDaddy DNS management.
  9. Import the exported .txt file into Route53.
  10. In the GoDaddy DNS management, change the Nameservers to the AWS Route53 Nameservers.
  11. Change the domain’s “A Name” to your EC2 instance public IP address.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments