Setting up a wordpress site on AWS lightsail

shehan marino
sysops
Published in
3 min readJan 28, 2017

AWS launched a very interesting range of new servers with their new lightsail feature. you can access it via your normal AWS console login.

This was aimed at the developers so that they won’t waste time on setting up the server’s/environments etc.

Some of the feature’s of it are

  • Static IP address
  • SSH terminal access
  • DNS management
  • Intuitive management console
  • SSH key management
  • Server monitoring
  • Access to AWS services (eg: RDS) .

with no nonsense pricing

and the following applications and operating systems

So after seeing this me being the natural curious being I am wanted to use this so since my blog is on a wordpress I thought why not go for a self hosted lightsail server and ended up me blogging about it.

Below is how I set up the server

  1. After logging in to lightsail via the normal aws console login page, you are greeted with directly the “resources screen which is empty. you will see a button on the right that says “create instance” and once you click on that you get the option to choose your instance image or bare OS.
  2. Next you are prompted with the plan to which at the time of writing this blog you are getting a 1 month free trial.
  3. Aaand that’s pretty much it creating the instance. after you need to make sure the server has a static IP so you will need to go to the instance “Mange” option and select the “Network” option and assign/attach a static IP as shown below. It also allows you to set the ports open just like your security groups in AWS console.
  1. Once that is done you need to download the SSH cert from the “connect” option and when you log in to the server via SSH you are greeted with the following.

which I changed to the following to…

Article on how to do that can be found here.

Now that your server is up and running you can play around with it .

What I did next was export my wordpress site from wordpress.com and imported it to the site that was up and running in the server.

Here is how I did that.

Oh I almost forgot AWS lightsail has some neat graphs for monitoring the server as well.

you are now viewing this blog on AWS lightsail 😉

Originally published at sys-ops.io on January 28, 2017.

--

--

shehan marino
sysops
Editor for

Improving Developer Experience, Infrastructure as Code, Linux , Cloud Computing, Open-source DBA & DevOps enabler