Launch a Wordpress Website

Launch and configure a WordPress instance

with Amazon Lightsail

Amazon Lightsail is the easiest way to get started with AWS. It offers virtual servers, storage, databases and networking, plus a cost-effective, monthly plan.

This tutorial shows you how to launch and configure a WordPress instance on Lightsail. It includes steps to connect to your instance by using SSH, sign in to your WordPress website, create a static IP and attach it to your instance, create a DNS zone, and map it to your instance.

When you're done with this tutorial, you will have the fundamentals to get your WordPress website up and running in Amazon Lightsail.

Get started with Lightsail for free.

About this Tutorial
Time 10 minutes
Cost Free Tier Eligible
Use Case Compute
Products Amazon Lightsail
Audience Developer
Level Beginner
Last Updated March 23, 2020

Complete the following steps to get your WordPress instance up and running on Lightsail.

Note: For more information about creating an instance in Lightsail, see Creating an Amazon Lightsail instance in the Lightsail documentation.

Create instance.

amazon-wordpress-tutorial-01 amazon-wordpress-tutorial-02
  • Choose
  • Linux/Unixas the platform.
  • Choose
  • WordPressas the blueprint.
amazon-wordpress-tutorial-03 mike3
  • Must be unique within each AWS Region in your Lightsail account.
  • Must contain 2 to 255 characters.
  • Must start and end with an alphanumeric character or number.
  • Can include alphanumeric characters, numbers, periods, dashes, and underscores.
amazon-wordpress-tutorial-04

Create instance.

The default password to sign in to the administration dashboard of your WordPress website is stored on the instance.

Complete the following steps to connect to your instance using the browser-based SSH client in the Lightsail console, and get the password for the administration dashboard.

Note: For more information, see Getting the application user name and password for your Certified by Bitnami' instance in Amazon Lightsail.

Instancestab of the Lightsail home page, choose the SSH quick-connect icon for your WordPress instance.

amazon-wordpress-tutorial-05 cat $HOME/bitnami_application_password amazon-wordpress-tutorial-06

Now that you have the password for the administration dashboard of your WordPress website, you can sign in. In the administration dashboard, you can change your user password, install plugins, change the theme of your website, and more.

Complete the following steps to sign in to the administration dashboard of your WordPress website.

Note: For more information, see Getting the application user name and password for your Certified by Bitnami' instance in Amazon Lightsail.

a. In a browser, go to:

http://PublicIpAddress/wp-login.php

In the address, replace PublicIpAddress with the public IP address of your WordPress instance. You can get your instance's public IP address from the Lightsail console as shown in the following image:

wordpress real

b. Log into your instance.

  • In the
  • UsernameorEmail Addressbox, enter "user".
  • Passwordbox, enter the default password obtained earlier in this tutorial.
  • Choose
  • Log in.
amazon-wordpress-tutorial-07

You are now signed in to the administration dashboard of your WordPress website where you can perform administrative actions. For more information about administering your WordPress website, see the WordPress Codex in the WordPress documentation.

amazon-wordpress-tutorial-08

The default public IP for your WordPress instance changes if you stop and start your instance. A static IP address, attached to an instance, stays the same even if you stop and start your instance.

Complete the following steps to create a static IP address and attach it to your WordPress instance.

Note: For more information, see Create a static IP and attach it to an instance in Amazon Lightsail.

b. Choose the Networking tab, then choose Create static IP.

amazon-wordpress-tutorial-10

c. The static IP location, and attached instance are pre-selected based on the instance that you chose earlier in this tutorial.

amazon-wordpress-tutorial-11

d. Name your static IP, then choose Create.

amazon-wordpress-tutorial-12

Transfer management of your domain's DNS records to Lightsail. This allows you to more easily map a domain to your WordPress instance, and manage more of your website’s resources using the Lightsail console.

Complete the following steps to create a Lightsail DNS zone and map a domain to your WordPress instance.

Note: For more information, see Creating a DNS zone to manage your domain’s DNS records in Amazon Lightsail.

b. Enter your domain, then choose Create DNS zone.

amazon-wordpress-tutorial-14

c. Make note of the name server address listed on the page.

You add these name server addresses to your domain name’s registrar to transfer management of your domain’s DNS records to Lightsail.

amazon-wordpress-tutorial-15

Add record.

Subdomainbox, enter an @ symbol to map the apex of your domain (such as example.com) to your instance. The @ symbol explicitly symbolizes that you’re adding an apex record. It is not added as a subdomain.

Maps tobox, choose the static IP that you attached to the WordPress instance in the previous step of this tutorial.

amazon-wordpress-tutorial-16

Congratulations

You have used Amazon Lightsail to launch and deploy a WordPress instance.Amazon Lightsail is a great choice to develop, build, and deploy a variety of applications like WordPress, websites, and blog platforms.

Source: Amazon Web Services, Inc.