How to register a domain and host your WordPress website in AWS (Amazon Web Services)
In this post, I will show you how to register a domain and host your WordPress website in AWS (Amazon Web Services). It’s cheap, effective and reliable!
Steps for Host your WordPress website in AWS
Register your domain with Route53
Click on All services and scroll down to “Networking & Content Delivery” and select Route53
Search for your domain in the field below, It will also show the price on the right-hand side.
If your domain is available it will show it like this:
Hit Add to Cart and proceed with payments to secure your domain within AWS.
While making the purchase you can select either one of these options to secure your identity.
By default, “Hide contact information in the TLD Registry” is checked. (see below)
Select your option and hit continue.
Review your complete order and please focus on this DNS settings and accept the “AWS Domain name registration agreement” and hit complete purchase.
STEP II – Create EC2 Instance with Bitnami
Log into aws.amazon.com
In AWS Services under “Compute” click on EC2
After you click on EC2 a new page will load which shows the details like:
All of your running Instance; Volumes; Key Pairs; Placement groups; Elastic IPs; Snapshots; Load Balancers; Security Groups; Dedicated Hosts (see image below)
Click on “Launch Instance”
After you click on “Launch Instance” a wizard starts which will help you build your server. It looks like this:
We will select “AWS Marketplace” from the left pane:
After you click on “AWS Marketplace” search for “Wordpress” you will see various vendors who provide WordPress plugins. (Vendors like Bitnami, Amimoto, Kusanagi, Intuz, Symetricore & IAANSYS)
However, we will select the first one which says “Wordpress Certified by Bitnami” and continue with our build.
After you select a respective option it will show you the pricing details such as:
After you reviewed the pricing, scroll down and hit Continue to proceed further.
Now let’s choose “Free tier eligible” Type and hit Next “Configure Instance Details”
On this page, we will enable “Protect against accidental termination” to be on a safe side:
Leave the storage to default 10 GB unless you wish to upgrade the size:
In this page, we will add tags I personally prefer “Value” with “Website name” to make it easy to identify.
In this step 6, you can choose it to open certain ports for e.g: SSH, HTTP, HTTPS & much more.
Once done please hit “Review and Launch”
As soon as you hit “Review and Launch” it will show the Review page where you can review all the setting you have selected during the wizard. After you are satisfied with what you opted to build this server hit “Launch” shown on the bottom right of the page.
Important Step here after you hit Launch:
You need to create a new “Key Pair” to allow your machine accessible via SSH. Create it and download it and save it somewhere safe. (The downloaded file is in. PEM format)
After you finished downloading the key pair hit “Launch Instances” button as shown in above picture.
You can view the Launch status in next page and if you need to see in detail hit “Launch Log” and the details will be expanded below. Like shown in this picture:
Scroll down to bottom and click “View Instances” button on right to see your EC2 instance.
It’s your instance name highlighted in yellow which is blank; however, you can rename it to site name as you wish as soon as you move your cursor to that field you will find a way to edit it.
Since you have your instance highlighted on bottom pane capture the Public IP assigned to your EC2 Instance:
Now let’s access the default template by browsing the public Ip you captured in the previous step.
It will show you the default WordPress template.
However, you can access the WP-Admin console by adding /admin in front of public IP.
To get your WP-Admin password you need to view system logs, highlight your EC2 instance and then click on Action > Instance Settings > Get System Log (See below)
After you hit “Get System Log” you will see a new pop up with all the information, scroll down to view the password as it’s shown below.
There you go Word press is up in running now, please feel free to customize the plugins per your need.
Stay tuned for our upcoming article on configuring WordPress!