In this tutorial, you will learn how to deploy a WordPress-based website using Amazon Lightsail and how to configure DNS to make the website available to visitors. However, before we start, let's touch a bit on what Amazon Lightsail is.

Thomas Mitchell

Tom is an IT veteran with 25+ years of systems engineering and infrastructure experience. His core skillset features in-depth knowledge of numerous technologies, most notably Microsoft Exchange / O365, Active Directory, and Microsoft Azure. Tom is also a prolific content producer for several IT websites and training platforms. His home base online is www.thomasmitchell.net.

Latest posts by Thomas Mitchell (see all)

Amazon Lightsail is essentially a simple virtual private server (VPS) solution. This offering from Amazon provides the ability to deploy and manage websites and web apps in Amazon Web Services (AWS). Lightsail features a virtual machine, SSD storage, data transfer, DNS management, and even a static IP address.

Through this tutorial, we are going to deploy a WordPress website on the Amazon Lightsail platform. We are going to use the Bitnami WordPress image for the deployment. We will then assign a static IP address to the WordPress site via Lightsail. Lastly, we'll assign a domain name to the website in the DNS management portal of our domain name registrar.

Create an instance ^

To get started, open the Amazon AWS portal and click on Lightsail, which is in the Compute section. If it prompts you for a language, select English and save it.

From the Lightsail dashboard, create a server instance by clicking on Create Instance. It then presents you with an instance location (which you can change if you wish) and two platform choices: Linux/Unix and Windows.

Create an instance

Create an instance

Unless there is a specific reason to change your instance location, leave it at the default.

Choose Linux/Unix as your platform.

Under Select a blueprint, choose Apps + OS and select WordPress.

Select a blueprint

Select a blueprint

There is no need to add a script or change the SSH key pair, so leave them as they are.

Next, select an instance plan that fits your expected traffic requirements. For this tutorial, go ahead and cheap out—select the cheapest plan.

Choose your instance

Choose your instance

Provide a name for your instance and tell Lightsail how many instances to deploy. For this tutorial, go ahead and retain the default name and number.

Click "Create." After creating the new instance, the dashboard presents you with it.

New instance pending

New instance pending

After a few minutes, the status will switch from Pending to Running.

New instance running

New instance running

Once the status shows Running, you have a basic WordPress site running. However, you still need to complete some configuration tasks. Not only are you going to want to change the default username, but you will also want to assign a domain name to the website, because until you do so, you will only be able to access the website via its IP address.

Secure the website ^

The default WordPress admin username is user. To retrieve the password for it, click on the instance and then click the Connect using SSH button.

Connect with SSH

Connect with SSH

After connecting, you'll see the console screen.

Console screen

Console screen

Enter the command below to get the password for the account:

It will display the password you can use to log in to the WordPress admin dashboard.

Display password

Display password

You can then browse to the IP of your WordPress instance and log in using User along with the password shown in the SSH console. Browse to http://yourIPaddress/wp-admin to log in to WordPress.

WordPress Dashboard

WordPress Dashboard

If you are interested in best practices, create a new admin account by clicking Users in the left pane of the WordPress dashboard and then Add New. Create a new account and grant it the Administrator role.

Create a new admin account

Create a new admin account

After creating the new admin account, you can then log in with it and remove the default admin account.

Assign a static IP address ^

With the site up and running, you can now add a static IP address. To do so, click the Networking link in the instance dashboard:

Instance dashboard

Instance dashboard

Click the Create static IP button under the public IP address.

Create static address

Create static address

You'll then see the screen below:

Assign a new IP

Assign a new IP

Click the Create button to create the static IP resource and to assign it to the WordPress instance.

Confirmation then displays onscreen:

New IP assigned

New IP assigned

Confirm that the IP address works by browsing to it with your internet browser. It should bring up your WordPress instance.

Setup DNS ^

Accessing a website via IP address is obviously very cumbersome and not very intuitive. As such, you'll want to assign a domain name to the website. To do so, visit your favorite domain name registrar and register a domain name for your website. For this tutorial, I used www.bluewidgets.org, which I registered at GoDaddy.

The easiest way to get DNS going for your new WordPress website is to just use the DNS your domain name registrar offers. To set up DNS for my website in this tutorial, I logged into my GoDaddy account and modified the "A record" for bluewidgets.org. I pointed the "A" record to the static public IP address of my newly deployed website.

Modify DNS

Modify DNS

After pointing the registrar DNS to the WordPress site's public IP address, I was able to access my Lightsail-hosted WordPress site via DNS:

Completed website

Completed website

If you've followed this tutorial in your own environment, congratulations! You've now completed the process of provisioning a Lightsail instance, and you've successfully deployed WordPress to it. You've also secured the website with a new, non-default admin account. By assigning a static IP address to the site along with a publicly accessible domain name, you've made the website available to the world!

Are you an IT pro? Apply for membership!

1+
Share

Related Posts

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

CONTACT US

Please ask IT administration questions in the forum. Any other messages are welcome.

Sending
© 4sysops 2006 - 2019

Log in with your credentials

or    

Forgot your details?

Create Account