wordpress website migrate to lightsail

Migrating WordPress Website To Lightsail On AWS – Part 1

Table of Contents

Are you running your on shared hosting or VPS that is not performing well? Want to move your WordPress website to a better and reliable hosting provider?

There are many good hosting solutions providers on the internet. Our favorite is also popularly known as AWS. The team behind the AWS is very supportive and treats you well when you need them.

The best thing we like about AWS is its billing and reliability. The prices are very pocket-friendly for small to medium size websites. You don't have to break the bank to pay your website hosting bills.

The reliability of AWS servers is super amazing. You will be amazed at how well they perform. And if structured properly by using different services like RDS, VPC, etc., you can create a highly available website worldwide.

So today we are migrating a website from AWS EC2 to Lightsail on AWS itself. We are doing this as EC2 servers need a little more managing time than Lightsail servers. Other than that there is no reason for us to move away from EC2 servers.

Setting Up Server For WordPress Website

Starting up and maintaining a Lightsail server is much easier than EC2 servers. It is the same as maintaining a dedicated server and a virtual server. Here EC2 servers are like dedicated servers. And Lightsail servers are like VPS's.

1. Log into your AWS account and press the Create Instance button.

AMAZON LIGHTSAIL CREATE INSTANCE

This will lead you to the new instance settings page. Here you can select the instance location, platform, instance plan, and name the instance.

AMAZON LIGHTSAIL CREATE INSTANCE CONFIGURATIONS

2. Select Server Location

We are selecting Ohio-2 as our server location as we found that this location has a little more redundancy than other locations.

3. Server Platform Selection

Next is selecting the platform for the server. This is the OS you want on your server. We recommend going with Linux as it is the most widely used server worldwide. Plus lots of customizable opportunities with it.

In the instance image section, you can directly go with WordPress or WordPress multisite instance. This will create a WordPress website with Apache as its process handler along with PHP and MySql.

In our experience, Apache performed not so well for high-traffic websites. So we are going with the Nginx blueprint.

4. Select A Blueprint

In this Nginx blueprint, you get Nginx certified by Bitnami with a complete PHP, MySQL, and Nginx production environment. It also comes with phpMyAdmin, SQLite, Memcache, and other such features that will help us optimize our WordPress website for better performance as the traffic increases.

5. Instance Plan

Now select the right instance plan you think will be right for your website. If it is a small website just starting up, go with the basic plan of $3.5 monthly. Here you get 512MB RAM, 1 vCPU, 20 GB SSD, 1 TB bandwidth monthly.

If the website you are making or migrating already has a good amount of traffic between 10,000 to 100,000 page views monthly then going with a $5 or $10 website plan will be a better choice. Select the plan based on your website traffic.

6. Instance Name

Last but not least is naming your instance. This is to identify your instance with a unique name.

7. Create AWS Lightsail Instance

Once named your instance, click on the Create Instance button.

Now give the AWS Lightsail a few minutes of time until it creates your selected configuration instance. This should take 5 – 10 minutes.

AMAZON LIGHTSAIL CHOICES

Clicking on your instance will take you to the instance details page where you will find Stop and Reboot buttons as well. Public IP and all other details required.

The best part we like about Lightsail servers is that you can connect to the instance by SSH from the browser itself.

CONNECT USING SSH IN BROWSER AMAZON LIGHTSAIL

On the Instance details page when you scroll down you will see a button named Connect using SSH. This button will directly take you inside the instance command line.

AMAZON LIGHTSAIL SSH ACCESS ON BROWSER

You will not need to use it much apart from updating your OS once in a while.

But if you need to configure other parts of Nginx, PHP, and MySQL apart from the default configurations then this feature of AWS Lightsail for the WordPress website will come in handy.

For this tutorial, we are going with the default settings of the AWS Lightsail with Nginx image settings.

8. Setting Static IP For Lightsail Instance in AWS

The next very important step is to set a static IP for your instance. Go to the Networking tab on the instance details page.

CREATE STATIC IP AMAZON LIGHTSAIL INSTANCE

The public IP shown is a temporary IP or dynamic IP that will change if ever you stop or reboot your instance. To prevent this we will create a static IP for this instance.

Click on the Create static IP link. This will redirect you to the Static IP settings page.

AMAZON LIGHTSAIL STATIC IP SETUP

Give a unique name for identifying your static IP.

Press the Create button. This will create a unique static IP that will be attached to your Lighstail instance forever as long as this instance is live.

Another important step is to have a snapshot for your website. Amazon web services offer to make automatic snapshots for Lightsail instances.

9. Set Regular Backups For AWS Lightsail

Go to your instance details page and find the Snapshots tab.

AMAZON INSTANCES AUTOMATIC SNAPSHOTS

Enable the Automatic Snapshots option. This will create automatic snapshots for 7 days for your instance.

This feature comes in very handy when your website is hacked or affected by malware. We recently wrote about one such situation here: https://underwp.com/wordpress-hacked-redirect-fix-2021/

To check if everything is alright, just type your public IP in your browser and you should be able to see a page like this:

NGINX PAGE AMAZON LIGHTSAIL

From here on the job of AWS Lightsail is done. Now it's time for us to pull up our sleeves and install WordPress on it in our customized way.

We will do this now in the next part of this series. We will be building a blank WordPress website with top scores. Then we will move to migrate our old website to this new website manually.

If you do not want to have a customized hosting platform for your WordPress website then check our post here: https://underwp.com/install-and-manage-wordpress-with-nginx-and-php-fpm-on-aws-ec2-micro-instance/

In the above link, you will see how we built a WordPress website the easiest way using WordOps. This is also a good way to manage your WordPress website with updates in its hosting technologies.

Do check out our other parts of this series to get yourself a robust and high-performance website.

If you like this post, please comment and share this post to keep us motivated.

Read the other parts:

Share This Article:
Facebook
Twitter
LinkedIn
Pinterest
WhatsApp
Email
Reddit
Related Articles:
image size reduce online
Facebook
Free Image Size Reduction Trick

Without Any Plugin Did you know that a normal website gets most of its weight from the images used in it? It is true. The majority of website size is mostly because of the images used in its pages. Optimizing images without losing quality is a difficult task for average

Read More »
free wordpress hosting
Plugins
Host Your WordPress Website For Free Forever

Hosting a WordPress website can be an expensive thing if not done properly. It can go from just a few dollars to thousands of dollars a month. Finding WordPress hosting can be a difficult task. If you own a small blog or website that you do not update often then

Read More »
free high quality backlinks
Backlinks
Get Free High Quality Backlinks The Creative Way

A backlink in the SEO world is a link from a post or a page on one website to another. If a website is linking to your content, it means you got a backlink. These backlinks are also called “inbound links”. Sometimes they are also called “incoming links”. Carrying a

Read More »
feature snippets complete guide
Search Engine Optimization (SEO)
A Beginner’s Guide To Google Featured Snippets

Did you know that Google already has the answer to your customer’s question? You’re probably thinking that you can outrank Google because it’s something they don’t have, but I would think again. Why? Because the answer is staring right at you in the search results. More and more websites are

Read More »
migrate wordpress website to aws
Linux
Migrating WordPress Website To Lightsail On AWS – Part 4

Did you know that WordPress websites are SEO friendly too? Websites that have SEO-friendly structures can be built easily using WordPress. The customization of various parts of WordPress using good SEO plugins like Rank Math or All-in-one SEO makes the WordPress websites more SEO friendly. Another important factor that impacts

Read More »
Chat With Our SEO community members On discord
Discord SEO Community Chat
  • z. avatar z. trying it out right now
  • nkap avatar nkap Great idea! Will definitely try it out. Thanks mate.
  • ddev66 avatar ddev66 A good trick to get guest posts for your website. <@968643757010481232> <@755307075625549854>
  • Büşra avatar Büşra Thank you very much. I'll try 😊
  • nkap avatar nkap Yeah me too!!
  • naaz avatar naaz <@755307075625549854> Thank you for the detailed answer. Hope <@341197404302737408> finds the right solution for this.
  • nkap avatar nkap <@341197404302737408> Just these:

    You can try 3 things: (I suggest you try the 3rd option first)

    1. If there are any links in your coverage report that’s actually not from your domain/property, I’d recommend you use the Search Console’s removal tool to remove these from your property.

    2. If you’re using any page builders like elementor etc make sure you turn off search engine indexing for things like templates. You can find this in Yoast SEO settings. With this setting your templates and unnecessary pages won’t be indexed. Are you using elementor by any chance?

    3. It’s also possible that your site has been hacked. If random URLs are appearing in analytics and search console the first thing that you should do is check your .htaccess file to see if someone has put any rewrite rules.
  • ddev66 avatar ddev66 <@755307075625549854> got any views on this?
  • ddev66 avatar ddev66 did you change your permalinks sometime back in last few months?
  • naaz avatar naaz <@838326478924021760> bringing to your attention on this.
  • Büşra avatar Büşra hello guys! I need to help about SEO optimation. I'm using wordpress Yoast. I saw dummy link like as ``` https://myURL.com/cuisine/35/17498``` I haven't these in page. Btw ı'm using google search console. Why may be this? Is anyone has idea about that?
  • ankit662003 avatar ankit662003 does anyone know how to create seo silos?
  • ankit662003 avatar ankit662003 hi
  • ddev66 avatar ddev66 Just know that we are all here to help each other
  • ddev66 avatar ddev66 No worries mate.
  • Alex25 avatar Alex25 The thing is idk what to ask .
    I'm just stuck
  • ddev66 avatar ddev66 Drop your queries here
  • ddev66 avatar ddev66 Surely <@555915490791391232>
  • Alex25 avatar Alex25 Hello guys ,
    I'm a begginer at Marketing and i'm really stuck on my project if you guys can help me with it i'll be soo greatful .
  • ddev66 avatar ddev66 Discuss your seo related questions here
  • Alex25 avatar Alex25 Hello everyone
  • ddev66 avatar ddev66 Hello everyone! Here we will be sharing all the SEO related information and threads.

Leave a Reply

Your email address will not be published.

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