DEV Community

Cover image for Deploying Wordpress on Aws Lightsail and enabling HTTPS.
Gbemisola Esho for AWS Community Builders

Posted on

Deploying Wordpress on Aws Lightsail and enabling HTTPS.

Lightsail is a powerful virtual server and one of the easiest way to launch and deploy your web apps and websites.
This saves you from building a site from the scratch at the snap of your fingers because as developers time is critical.
You can deploy wordpress in Lightsailand authenticate with the following steps.
Log into the lightsail console and create an instance

Image description
Choose your prefered instance and image and blue print,select your instance location and your availability zone

Image description

Go on to choose the plan you want and can afford

Image description
Go ahead and create your wordpress blue print deployed on lightsail instance
The next step is to connect to you instance through the SSH so you can get the Wordpress password

Image description
It results to this SSH session where you run the
cat $HOME/bitnami_application_password

Image description
This retrieves the application password and you sign into wordpress by using the public IP address going to the browser using this url http://PublicIpAddress/wp-login.php replacing "PublicIpAddress" with the public address IP of the instance

Image description

You go ahead to sign in to your wordpress site.

Image description
There you are! signed into your administration dashboard of your wordpress website.

Image description

You need to attach a permanent IP address which is the static IP address because the public IP changes when you start and stop the instance then you connect the static IP to the instance.You find this under networking,name it then create.

Go ahead to create your DNS ZONE this is also found under networking to and map a domain to the lightsail instance.To deloy checkout the tutorial https://aws.amazon.com/getting-started/hands-on/launch-a-wordpress-website/

Websites security gains the trust of users and you can achieve this by enabling Hyper text Protocol Secure (HTTPS) on your WordPress site .The assurance of encrypted data transfer on the website is gives the assurance of security.
The Bitnami HTTPS configuration tool (bncert) is used enable HTTPS on your Certified by Bitnami WordPress instance on Amazon Lightsail.
The tool requests certificates only for the domains and subdomains that specified when making your requests
To enable the tool ,you will connect to the instance via SSH and it opens when you are successfully connected

Image description

Enter the following command to run the tool to ascertain it is installed
sudo /opt/bitnami/bncert-tool this is the output

If it informs about an updated version,accept download then re-run the command again.

Image description

It will proceed further asking you to enter your primary domain name and alternate domain names separated by a space as shown.It would also ask how you want your website to be redirected.

Image description

Answer with a yes and continue
This was the website before it was encrypted

Image description

When bcert tool enabled encryption

Image description

The website after http has been added

Image description

Top comments (1)

Collapse
 
topinsn profile image
Temitope Olaoluwa

So, light sail would host and reserve a name for 3.5 a month?