π― Whatβs the goal?
Install WordPress on AWS (Amazon Web Services) with a free 12-months plan |
β οΈ Why does it matter?
If you interested in the AWS Free Trial |
---|---|
π Whatβs the result?
Launch a new virtual machine on AWS Server, and install it with a WordPress software image to run your future website and lay the foundation of your new online presence.. |
β When do you do this?
When itβs time to pick a new hosting provider |
β
Any special requirements?
Need a Credit Card |
πββοΈWho should do it?
The person is responsible for managing your website. |
β³ How long will this take? 10 – 20 minutes
Now letβs start to build the foundation for your Website
Table of Contents
Environment setup
- Make sure you use Google Chrome browser to navigate the web,
- Prepare Credit/Debit Card for registration*
- Prepare your cell phone for verification*
* Itβs free but a unique Card & Phone Number is required to make sure youβre not taking advantage of AWS free trial that is limited to one account per person.
Create an AWS account
If you are already shopping with Amazon, you can use the same Credentials of your Amazon account, there on AWS. If not, then please go ahead and create a new account.
- Go to Amazon Web Services (aws.amazon.com)
- Click on βCreate a Free Accountβ
- Now you have to enter your email address and create a password for your new AWS account and name it (Eg: myBlogName), if you want some tips about how to organize your password, please check this Ultimate Guide to Password Management.
- Click the button βContinueβ
- On the next step, You should add some basic information
- I select βPersonalβ for the purpose of this guide, but if you are a business entity you can also select βProfessionalβ and enter a company name.
- Finally, check the box next to the agreement
- Click βCreate Account and Continueβ
- In the next step, you need to enter your Credit or Debit card data, nothing will be charged from your card, itβs just a way of verifying that youβre a unique person and not taking advantage of the 12-month free plan.
- And then, confirm your address, or βUse a new addressβ if it is different from the billing address of your Credit/Debit Card:
- Click on βVerify and Addβ
- Next step, youβll need to enter a valid phone number. Amazon will send a verification code to make sure the number is valid. So start by filling the necessary data for receiving verification code and proceed and press βSend SMSβ
- Fill in with the code you just received on your mobile device, and click βVerify Codeβ, then if it was correct press βContinueβ.
- On the next page, we will choose the βFree Planβ
- Then, you can choose to select your role and your interests if You want to receive recommendations from Amazon.com (you can leave it blank).
- Finally, click on βSign In to the Consoleβ
- To sign in choose βRoot userβ and enter the email address you used to create your account on AWS and click βNextβ
- Enter your password and press βSign inβ
- Wait for the page to loadβ¦
Create your WordPress Instance / Server on AWS
- Now you should be able to see AWS Management Console
- Start off with choosing the region for your data center (upper right corner), Amazon has many locations for their Data Center, and here you can pick the location that seems to be the closest to the future audience of your website.
- Click on βAll servicesβ and choose βEC2β under βComputeβ tab
- Select βLaunch Instanceβ
- Now search for βbitnamiβ in the search engine
- Search for results in βAWS Marketplaceβ, you need βWordPress with ubuntu 16.04 or higherβ and βFree tier eligibleβ, ignore the option with SSL as we will prepare another SOP to explain how to get a free SSL for your website using Cloudflare.
- Press βSelectβ
- You can review your choice with pricing after your free year, and then click on βContinueβ and then select the instance βt2.microβ that is βFree tier eligibleβ for your 12-Months free trial.
After 12 Months this instance will cost $0.013 / hr βon-demandβ which translate to $113.88 / year
Or if you reserve it for 1 year, the price will reduce to $0.007 / hr which translate to $61.32 / year
- Press βNext: Configure Instance Detailsβ to start configuring your new instance, we recommend you to select βProtect against accidental terminationβ, then click on βAdd Storageβ
- You can choose to stay with 10GB of storage (It will be enough), be careful not to add storage above the free limit
- Now press βNext: Add Tagsβ, where you can add tags for your instance, itβs useful if you have many instances and want to sort them in groups. But you can skip this for now (and can always add them in the future)
- Then click on βConfigure Security Groupβ
- We recommend you to leave the default settings here
- Finally, click on βReview and Launchβ
- You can review all your choices and press βLaunchβ
NOW, THIS IS VERY IMPORTANT STEP – YOU NEED TO CREATE AND DOWNLOAD A NEW PAIR OF KEYS TO ACCESS THE CONSOLE OF YOUR SERVER,
YOU NEED TO STORE YOUR βKEY FILEβ SOMEWHERE SAFE SUCH AS GOOGLE DRIVE OR EXTERNAL DRIVE WHICH YOU CAN ACCESS
- Select in the drop-down menu βCreate a new key pairβ and then enter the desired name (eg: mysitekey) and press βDownload Key Pairβ.The Security Key is a file with β*.pemβ extension
- Now, you can click βLaunch Instancesβ
- Wait a momentβ¦
- If everything went ok, you should see this
- Now, you can go back to the EC2 services page from the top left menu:
- Select βInstancesβ on the left side
- You should see in βStatus Checksβ that the instant is βinitializingβ
- At the bottom of the same page, you should see information about your server, find βPublic DNS (IPv4)β and copy it
- This is the temporary URL of your Website (until you buy a domain name). So you can copy and save it, and then paste it in a new tab (you will need to keep the previous tab open to finish configure your WordPress Installation)
- On this URL you should already be able to see your own WordPress website! Don’t forget to set the robots.txt file.
- If you canβt access yet your website, then please get back to previous browser tab and check if βinitializingβ status has changed to β2/2 checksβ – if not wait for it to finish initialize:
Find the password of your WordPress Admin Panel
You have now a fully working virtual server running on Amazon AWS Data Center with WordPress installed on it, now itβs time to find the password of your WordPress Admin Area.
- Right-click on your instance and select βInstance Settingsβ > and βGet System Logβ
- In the pop-up window, close to the end, you will find username and password
- Now go back to your website and click on βLog inβ
Once you click βLog inβ you will be redirected to the URL of the Administrative Area of your WordPress Website. Once you customize your WordPress website with a theme, this link to βLog Inβ might disappear so you better save this URL now, but in case you lost it, it should look like this: yourwebsiteip/wp-admin or yourwebsiteip/wp-login.php
- Enter the username and password you found in the previous step, and press βLog inβ
This is it! Congratulations. Youβre now on the dashboard of your WordPress Administrator Area.
Your new website is online. If desired, you can go to the section βUserβ in the left menu to change the default username and password of your WordPress Administrator.
Now itβs time to Customize your WordPress website with a theme.