Host a WordPress site with amazon Lightsail and map the domain from a third-party registrar to it

Host a WordPress site with amazon Lightsail and map the domain from a third-party registrar to it

Overview

Amazon Lightsail is the easiest way to get started with Amazon Web Services (AWS) for developers, small businesses, students, and other users. Lightsail provides developers compute, storage, and networking capacity and capabilities to deploy and manage websites and web applications in the cloud. Lightsail includes everything you need to launch your project quickly – virtual machines, containers, databases, CDN, load balancers, DNS management, etc. – for a low, predictable monthly price.

Pricing

pricing.PNG

Now let us launch the WordPress site in Lightsail

Step1: Open Lightsail and create an instance

you can click "Let's get started" or click on "Create instance" if you got another Dashboard

8.PNG

9.PNG

  • Choose Change AWS Region and Availability Zone also choose your instance image.

You can choose the nearest AZ or region to you and Choose Linux/Unix as the platform 10.PNG

  • Choose WordPress as the blueprint.

11.PNG

  • Setup launch script and ssh key pair if necessary (optional)

12.PNG

  • Choose your instance plan

I have chosen the first one because it is included in the free tier

13.PNG

  • Enter a name for your instance and choose Create instance.

14.PNG

Step2: Connect to your instance via SSH and get the password for your WordPress website

  • choose the SSH quick-connect icon for your WordPress instance.

16.PNG

  • you get a screen like below

20.PNG

  • Enter the following command to retrieve the default application password

cat bitnami_application_password

21.PNG

Step3: Create a static IP address and attach it to your WordPress instance

  • Goto Lightsail dashboard and click on Networking

34.png

  • Create Static IP

17.PNG

  • Select IP location and attach to the instance

18.PNG

  • Give a name to your IP and Create

19.PNG

Step4: Sign in to the admin dashboard of your WordPress website

  • Copy the Static IP that you created in step3 and add /wp-login.php and paste it on your browser

run.PNG

YourStaticIP/wp-login.php
3.108.145.55/wp-login.php
  • login to WordPress using the password you obtained from Step2

    Default username: user

22.PNG

  • Boom!! You are successfully login to the admin dashboard

23.PNG

  • Also the site is live

    you can check by pasting static IP in your browser

a.PNG

Step5: Mapping static IP to a custom domain

Note: I have used a domain from Namecheap you can purchase it from route53 or any third-party domain registrar

  • Open Route53 and Create a hosted Zone

1.PNG

  • Give the domain name that you purchased (say: shoeasy.me) and Create hosted zone

    you may add a description and set type to public hosted zone

2.PNG

  • You will get nameservers, copy that nameserver and add it to your domain DNS

3.PNG

4.PNG

Note: It might take up to 48 to update the nameservers but if you are using route53 the process is fast.

  • Create a record and map your WordPress IP to a custom domain name

leave the record name empty, Choose Record type to A, and on Value paste the Static IP. I have chosen a simple routing policy but you can use it according to your requirements

25.PNG

  • After nameservers are updated you can view/log in to your website using your custom domain

26.PNG

#Thank You

Did you find this article valuable?

Support Anup kafle by becoming a sponsor. Any amount is appreciated!