This step-by-step guide will help you get a website up and running with WordPress*, installed on an Amazon EC2 virtual machine (also known as an “instance”). You will go through how to configure and launch an EC2 instance, how to get your WordPress username and password, and how to log into your WordPress admin portal. Everything done in this tutorial is free-tier eligible.

*Note: This guide results in an architecture for a basic WordPress website intended for personal use or learning. This tutorial is not recommended for business-level websites with high scalability needs. For a more advanced tutorial, see the Build a Wordpress Website Project or Wordpress: Best Practices on AWS.

Did you know? AWS made it even easier to launch a WordPress website. Jumpstart your website with Amazon Lightsail >>

Launching a WordPress Website with AWS Requires an Account

Create a Free Account in Minutes

AWS Free Tier includes 750 hours of Linux and Windows t2.micro instances each month for one year. To stay within the Free Tier, use only EC2 Micro instances.

View AWS Free Tier Details »

Open the AWS Management Console and you can keep this step-by-step guide open. When the screen loads, enter your user name and password to get started. Then find EC2 under Compute, and double click to open the dashboard.

awsconsole-ec2

(click to expand)

awsconsole-ec2

Now you are in the EC2 dashboard, click Launch Instance from the dashboard to create and configure your virtual machine.

launch-instance

(click to expand)

launch-instance

Now you're in the Amazon EC2 configuration wizard, we will be using an existing Amazon Machine Image (AMI) from the AWS Marketplace that has WordPress already installed. The AWS Marketplace provides access to thousands of pre-configured images for common pieces of software.

 

a. Click on AWS Marketplace on the left-hand side, search for WordPress, look for WordPress powered by BitNami, then click Select.

Launch a WordPress Website - AMI

(click to expand)

Launch a WordPress Website - AMI

b. You will be presented a detailed pricing page. In this case, the price will be $0.00 for the software regardless of the size of the instance that you use.

Scroll to the bottom and click Continue.

Launch a WordPress Website - AMI Pricing

(click to expand)

Launch a WordPress Website - AMI Pricing

c. For this tutorial, we will be using a free-tier eligible t2.micro instance. Click on t2.micro in the Type column (it should be the first one), then click Next: Configure Instance Details. It may take a few seconds to load.

On the following screens, click Next: Add Storage and then Next: Tag Instance.

Getting Started - Choose an instance - WordPress

(click to expand)

Getting Started - Choose an instance - WordPress

d. We will set a name for your instance in this step. Enter Name in the Key box and WordPress in the Value box. Click Review and Launch to continue.

Launch a WordPress Website - Tag

(click to expand)

Launch a WordPress Website - Tag

e. You can review your instance configurations, then click Launch when you’re ready to start your Amazon EC2 instance running WordPress.

Launch a WordPress Website - Launch Instance

(click to expand)

Launch a WordPress Website - Launch Instance

f. The next screen deals with key-pairs. Key-pairs are how you can connect to your EC2 instances via a terminal program using Secure Shell (SSH). Select Proceed without a key pair, and check the box acknowledging that you know you need this key to access your EC2 instance.

Click Launch Instances to launch your instance. Be aware that starting the instance up may take a few minutes.

Note: To connect to your instance directly, you will need to create a new key pair. For instructions on creating a key pair and connecting to an instance, see steps 2 d.-2 f. and 3 of the tutorial: Launch a Linux Virtual Machine.

Launch a WordPress Website - Keypair

(click to expand)

Launch a WordPress Website - Keypair

g. Click View Instances on the bottom right of the page (you may need to scroll down to see it). Then select the WordPress instance, make sure the Instance State says running. If Instance State says launching then AWS is still preparing your WordPress instance.

Launch a WordPress Website - Instance Running

(click to expand)

Launch a WordPress Website - Instance Running

h. Once your instance is running, you can now test your WordPress website. Find the Public IP for your instance at the bottom of this page.

Launch a WordPress Website - Public IP

(click to expand)

Launch a WordPress Website - Public IP

i. Copy the Public IP into a new tab in your web browser, and you should see a Hello World blog page appear.

Launch a WordPress Website - Hello World

(click to expand)

Launch a WordPress Website - Hello World

Now that you have your WordPress site up and running, it’s time to log into its administration page so you can customize your site. To find your password, please follow the steps below:

a. Switch back to your EC2 management console in your web browser. Select WordPress instance, and click the Actions button. In the drop down menu, select Instance Setting, and choose Get System Log.

Launch a WordPress Website - System Log

(click to expand)

Launch a WordPress Website - System Log

b. In the system log window, scroll through to the bottom to find the password that's surrounded by hash marks.

Launch a WordPress Website - Password

(click to expand)

Launch a WordPress Website - Password

c. Now that you have your password, switch back to the tab that you used to access the WordPress Hello World page. Add /admin to the end of the URL so it looks something like 54.192.32.144/admin. Hit enter.

Enter the Username user and the Password that you read from the log file.

Launch a WordPress Website - Login

(click to expand)

Launch a WordPress Website - Login

Congratulations! You now have your WordPress site up and running. You can now manage, customize, and configure it as you like.


Now that you have your WordPress site up and running. You need to make it easy for people to get to. In the next tutorial we’ll register a domain name for your website so people can find it easily, and we’ll connect that domain name to your currently running instance.

Associate a Domain Name with Your Website Using Amazon Route 53 »


Yes
No