You are currently viewing How to host a WordPress website in AWS EC2 instance – Part 2

How to host a WordPress website in AWS EC2 instance – Part 2

How to host a WordPress website in AWS EC2 instance – Part 2

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

This will be a 3-part series where in part 1 we have created an EC2 instance in AWS cloud to host our WordPress website, in the part 2 we will install and configure our WordPress website and in part 3 will complete the setup by enabling DNS and TSL/SSL for our WordPress website.

Install and configure WordPress website in AWS EC2 instance:

Prerequisites:

Step 1: Connect to your EC2 instance.

Step 2: Update software packages in your EC2 instance.

Step 3: Install Apache webserver in your EC2 instance.

Now try to open your EC2 instance public IP address in a browser. If you see below test page, your webserver installation was successful.

Install Apache webserver in your EC2 instance

Step 4: Install MySQL (MariaDB) database server in your EC2 instance.

Step 5: Install phpMyAdmin in your EC2 instance.

Now try to open phpMyAdmin in your browser using http://<ec2_public_ip>/<custom_name>

Install phpMyAdmin in your EC2 instance

Note: Do not login to phpMyAdmin yet as its not secure (You can once we enable TSL/SSL in part 3)

Step 6: Install and configure WordPress in your EC2 instance.

Step 7: Complete your WordPress setup by opening your public IP in browser.

Install and configure WordPress in your EC2 instance

Bravo, you have successfully installed and configured your first WordPress website in AWS Cloud.

Install and configure WordPress in your EC2 instance

Hope you have enjoyed this 2nd part where we have installed and configured WordPress in our AWS EC2 instance. But if you observe closely still two vital components HTTPS communication and domain name are missing in our website. In the third part we will configure a domain name against our public IP address so that it can be browsed using user friendly name (like http://techaffaire.com) instead of IP address and also enable TSL/SSL for https communication (like https://techaffaire.com)

Leave a Reply