Hosting a Wordpress site on AWS
Below are guided steps to install and run wordpress on AWS:
Launch an Amazon EC2 Instance, Now you are in the EC2 dashboard, click Launch Instance from the dashboard to create and configure your virtual machine. Configure your Instance
Now you’re in the Amazon EC2 configuration wizard, we will be using an existing Amazon Machine Image (AMI) from the AWS Marketplace that has WordPress already installed. The AWS Marketplace provides access to thousands of pre-configured images for common pieces of software.
Click on AWS Marketplace on the left-hand side, search for WordPress, look for WordPress powered by BitNami, then click Select.
You will be presented a detailed pricing page. In this case, the price will be $0.00 for the software regardless of the size of the instance that you use. Scroll to the bottom and click Continue.
For this tutorial, I will be using a free-tier eligible t2.micro instance. Click on t2.micro in the Type column, then click Next: Configure Instance Details. It may take a few seconds to load.
On the following screens, click Next: Add Storage(Note: Leaving the default configure instance details for my case)
and then Next: Tag Instance.
I will set a name for my instance in this step. Enter Name (My case name sachita)in the Key box and WordPress in the Value box. Click Review and Launch to continue.
Review your instance configurations, then click Launch when you’re ready to start your Amazon EC2 instance running WordPress.
The next screen deals with key-pairs. Key-pairs are how you can connect to your EC2 instances via a terminal program using Secure Shell (SSH). Select Proceed without a key pair, and check the box acknowledging that you know you need this key to access your EC2 instance.
Click Launch Instances to launch your instance. Be aware that starting the instance up may take a few minutes.
Click View Instances on the bottom right of the page (you may need to scroll down to see it). Then select the WordPress instance, make sure the Instance State says running. If Instance State says launching then AWS is still preparing your WordPress instance. (My case is the first instance running and not the terminated one as the terminated EC2 instance is for another closed project)
Once your instance is running, you can now test your WordPress website. Find the Public IP for your instance at the bottom right of this snippet below highlighted in blue.
Copy the Public IP into a new tab in your web browser(i.e. Chrome, Mozilla), and you should see a Hello World blog page appear.
Make Changes to Your Website
Now that you have your WordPress site up and running, it’s time to log into its administration page so you can customize your site. To find your password, please follow the steps below:
Switch back to your EC2 management console in your web browser. Select WordPress instance, and click the Actions button. In the drop down menu, select Instance Setting, and choose Get System Log.
In the system log window, scroll through to the bottom to find the password that’s surrounded by hash marks as below snippet.
Now that you have your password, switch back to the tab that you used to access the WordPress Hello World page. Add /admin to the end of the URL so it looks something like Your Public IP/admin (i.e. 54.41.173.74/admin). Hit enter.
Once you have been redirected to wordpress login page enter the Username as user and the Password that you read from the log file.
You can now manage, customize, and configure it as you like to suit your intended needs for the wordpress site which might be a blog or even an e-commerce site.
See below changes i made to the post
Thank you for reading though hope it guides you well.