‹ Return to How tos

Tutorial: Launch and configure a WordPress instance in Amazon Lightsail

Last updated: December 7, 2022

Amazon Lightsail is the easiest way to get started with Amazon Web Services (AWS) if you just need instances (virtual private servers). Lightsail includes everything you need to launch your project quickly—instances, managed databases, SSD-based storage, backups (snapshots), data transfer, domain DNS management, static IPs, and load balancers—for a low, predictable price.

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 attaching it to your instance, and create a DNS zone and mapping your domain. When you’re done with this tutorial, you have the fundamentals to get your instance up and running on Lightsail.

Contents

Step 1: Sign up for AWS

This tutorial requires an AWS account. Sign up for AWS, or sign in to AWS if you already have an account.

Step 2: Create a WordPress instance in Lightsail

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.

  1. Sign in to the Lightsail console.

  2. On the Instances tab of the Lightsail home page, choose Create instance.

    Launching and configuring WordPress in Lightsail.
  3. Choose the AWS Region and Availability Zone for your instance.

    Launching and configuring WordPress in Lightsail.
  4. Choose your instance image.

    1. Choose Linux/Unix as the platform.

    2. Choose WordPress as the blueprint.

      Launching and configuring WordPress in Lightsail.
  5. Choose an instance plan.

    A plan includes a low, predictable cost, machine configuration (RAM, SSD, vCPU), and data transfer allowance. You can try the $3.50 USD Lightsail plan without charge for one month (up to 750 hours). AWS credits one free month to your account.

    Note

    For a limited time, Lightsail is extending its free trial to include three months free on select instance plans. The offer applies to new or existing AWS accounts who started using Lightsail on or after July 8, 2021. Offer only applies to one bundle per account. Standard charges apply after the first 750 hours of usage of the selected bundle each month.

    You can use the following instance plans free for three months:

    • Linux/Unix instance plans: $3.50 USD per month, $5 USD per month, and $10 USD per month

    • Windows instance plans: $8 USD per month, $12 USD per month, and $20 USD per month

  6. Enter a name for your instance.

    Resource names:

    • 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.

    Launching and configuring WordPress in Lightsail.
  7. Choose Create instance.

Step 3: Connect to your instance via SSH and get the password for your WordPress website

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 Bitnami instance in Amazon Lightsail

  1. On the Instances tab of the Lightsail home page, choose the SSH quick-connect icon for your WordPress instance.

    Launching and configuring WordPress in Lightsail.
  2. After the browser-based SSH client window opens, enter the following command to retrieve the default application password:

    cat $HOME/bitnami_application_password
  3. Make note of the password displayed on the screen. You use it later to sign in to the administration dashboard of your WordPress website.

    Launching and configuring WordPress in Lightsail.

Step 4: Sign in to the administration dashboard of your WordPress website

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 Bitnami instance in Amazon Lightsail.

  1. In a browser window, 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 example:

    Launching and configuring WordPress in Lightsail.
  2. In the Username or Email Address box, enter user.

  3. In the Password box, enter the default password obtained earlier in this tutorial.

  4. Choose Log in.

    Launching and configuring WordPress in Lightsail.

    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.

    Launching and configuring WordPress in Lightsail.

Step 5: Create a Lightsail static IP address and attach it to your WordPress instance

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.

  1. On the Instances tab of the Lightsail home page, choose your running WordPress instance.

    Launching and configuring WordPress in Lightsail.
  2. Choose the Networking tab, then choose Create static IP.

    Launching and configuring WordPress in Lightsail.
  3. The static IP location, and attached instance are pre-selected based on the instance that you chose earlier in this tutorial.

    Launching and configuring WordPress in Lightsail.
  4. Name your static IP, then choose Create.

    Launching and configuring WordPress in Lightsail.

Step 6: Create a Lightsail DNS zone and map a domain to your WordPress instance

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 Lightsail.

  1. On the Domains & DNS tab of the Lightsail home page, choose Create DNS zone.

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

  3. Make note of the name server addresses 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.

    Launching and configuring a LAMP instance in Lightsail.
  4. After management of your domain’s DNS records are transferred to Lightsail, add an A record to point the apex of your domain to your WordPress instance, as follows:

    1. In the Assignments tab of the DNS zone, choose Add assignment.

    2. In the Select a domain field, choose the domain or subdomain.

    3. In the Select a resource drop down, select the LAMP instance you created earlier in this tutorial.

    4. Choose the Assign.

    Allow time for the change to propagate through the internet's DNS before your domain begins routing traffic to your WordPress instance.

Step 7: Complete the next steps

Here are a few additional steps you can perform after launching a WordPress instance in Amazon Lightsail: