Intro

Setting up a WordPress website on Amazon Web Service (AWS) summarizes as an easy process. What’s troubling is the registration process and the overall AWS ecosystems, which can be described as “a jungle full of amazing tools to use but not knowing which one is right!”.

In this rather short post, I am going to walkthrough everyone on how to set up a working WordPress website on AWS in the easiest way possible. This is all free for everyone to use and it’s valid for a year worth of hosting (all of this is thanks to AWS Free Tier).

Getting Your Feet Wet

The first thing that you have to do is register for an AWS account. Yes, it does require you to add/associate your bank account with AWS but they won’t charge you while you are experimenting with their service (free tier product only). This is absolutely unavoidable for everyone that would like to use their service.

Once you have registered, make sure to validate your e-mail address and then log in to the AWS console.

AWS Mangement Console Link
AWS Mangement Console Link

Baby Steps

If the design is still the same, you will be greeted with this page. What you see in this page is essentially the services that AWS provides and each of these services can be linked together when you start to build larger application.

AWS management console home page
AWS management console home page

To get started, first you have to search amazon EC2 from the search box and when it auto-completes, press the first result that appears.

Below, it shows the EC2 homepage/dashboard and don’t worry about all of these links if they intimidate you. Just focus on the blue Launch Instance button in the middle of the page. What this button will do is, it will install/add new EC2 instance for you to use.

AWS EC2 Dashboard
AWS EC2 Dashboard

Getting Serious

Upon pressing the button, you will be redirected to this page where you will see steps that must be followed. These 7 steps will guide you through and set up an AWS instance.

EC2 Creating Instance Steps
EC2 Creating Instance Steps

From this page, press the AWS Marketplace link from the left sidebar and you will see another list of Amazon Machine Images (AMI). These images is essentially an application that you can install on top of Amazon EC2 and each will come with auto updates by the provideres when new updates is released. Extra point there.

EC2 Creating Instance Step 1
EC2 Creating Instance Step 1

In the search box of the AWS Marketplace, search “WordPress AMIMOTO“. This is the AMI image that we are going to install in the EC2 instance and in this case, it contains WordPress out of the box.

AWS marketplace
AWS marketplace

Press the first image “WordPress powered by AMIMOTO” and it will bring you to the 2nd page. From this page, you can select the t2.micro “Free tier eligible” and you will be able to use it for free.

EC2 Creating Instance Step 2
EC2 Creating Instance Step 2

Press the Review and Launch button at the bottom right of the screen and it will automatically bring you to step #7 🥇. The default settings by right will suffice for this, for starters we can just leave AWS to set it up for us.

EC2 Creating Instance Steps 7
EC2 Creating Instance Steps 7

If you have followed along and reached this far, well done! We are a few steps away from having a working WordPress application. Anyway, when you see “Select an existing key pair or create a new key pair” popup, make sure to select the create new key pair option and name your key anything you would like.

EC2 Create Key Pair
EC2 Create Key Pair

Once you have done that, make sure to Download Key Pair first and then Launch the Instance. Make sure to backup the key and store it in a safe location. This key will be the only way to access the machine later on (used for SSH).

EC2 Launch Status Page
EC2 Launch Status Page

Press the view instance button and you will see the EC2 Dashboard once again. In this page, it will show all of your EC2 instance (active and inactive).

EC2 Dashboard
EC2 Dashboard

Make sure to wait until the status check is complete and select that instance to see more details about it. This description sections will show you all of the details that you need about the macine and when there’s any details you need to refer to, this page will be the right page to refer to.

EC2 Instance Details
EC2 Instance Details

To access your website, access the IPV4 Public IP from the right side of the details window. This will be the IP address of the EC2 instance and you will always have to access WordPress using this link, unless you register and map your domain name to the IP address.

EC2 Public IP
EC2 Public IP

WordPress Installation

You will be able to access the WordPress installation page from the link and the design will look like this. please note that you need to access the /wp-admin/install.php path.

AMIMOTO AMI WordPress installation page
AMIMOTO AMI WordPress installation page

Fill in your instance ID (from the EC2 Dashboard) and then just follow the normal WordPress installation procedure. Once it’s complete, you will be able to see the WordPress dashboard upon logging in.

WordPress Dashboard
WordPress Dashboard

From the front-end side, it will look like the one that you’ve just guessed 👌🏻. One tips for FTP users, you can access the EC2 instance using SFTP (Secure File Transfer Protocol) but you need to use the key (that you have downloaded) as your password.

WordPress Website Homepage
WordPress Website Homepage

Please note that you won’t be able to access the ip address of the WordPress website that I have just shown you because I will terminate the instance upon completing this tutorial.

Conclusion 🎺

This have reached the end of the tutorial and if there’s any topic you guys want me to cover like “How to SSH into the server”, “How to access the MySQL database server” or “How to change the domain name” do let me know by commenting down below.

If there’s any questions that you guys would like to ask, let me know and I will reach to you as soon as possible. If you guys like this tutorial, make sure to share it to your friends because sharing is caring and happy exploring!