One Page Zen

Web Design. Simplified.

  • Tutorials
    • Google Cloud
    • Amazon Cloud
    • Microsoft Cloud
  • Start
  • Resources

How to Install WordPress on AWS

January 10, 2021 Leron Amin 28 Comments

FacebookTweetLinkedInEmail

Interested in hosting WordPress on AWS?

In this tutorial you will learn how to install WordPress on Amazon’s AWS Cloud Platform using the Bitnami version of WordPress on AWS.

Hosting WordPress on Amazon’s massive cloud network allows you to take your WordPress website to the next level.

Although hosting WordPress on AWS offers amazing performance, it can be challenging. If you’re a new to the development world, you may be interested in managed shared hosting or managed cloud hosting.

To get started, create a free AWS account and follow along with the video above. If you get stuck, check below to see the steps listed individually with their commands.

There are 8 steps in this tutorial:

  • 1. Launch a WordPress Instance
  • 2. Choose Instance Type
  • 3. Configure Instance Details
  • 4. Review Instance Details
  • 5. Generate SSH Key
  • 6. Obtain WordPress Credentials
  • 7. Copy External IP Address
  • 8. Login to WordPress

1. Launch a WordPress Instance

install wordpress on aws
After you’ve created an Amazon Web Services account, click the Services link at the top of the page, then click the EC2 link under the compute column.
install wordpress on aws
From your EC2 dashboard, click on the Launch Instance button to deploy a new EC2 instance. An “Instance” is just a fancy word to describe the Virtual Machine that will be running your WordPress installation.
install wordpress on aws
Now that your EC2 instance has been deployed, the next step is to install WordPress. To to this, navigate to AWS Marketplace in the left sidebar column, then search for WordPress and select WordPress Certified by Bitnami.
install wordpress on aws
Click the Continue button after you’ve looked over the Bitnami WordPress details page.

2. Choose Instance Type

install wordpress on aws
On the next page, select the instance (virtual machine) hardware that you want to run your WordPress installation. Choose the free t2.micro machine.

3. Configure Instance Details

install wordpress on aws
On the Configure Instance Details page, choose the Auto-assign Public IP option, and leave the other options unchanged.

4. Review Instance Details

install wordpress on aws
Next, click the Launch button at the bottom of the Instance Details page.

5. Generate SSH Key

install wordpress on aws
Next, a popup window will appear. Create a new SSH key pair as instructed in the popup window. Make sure to download the key pair and save it in a safe place. Next, click the Launch Instances button at the bottom of the popup window.

6. Obtain WordPress Credentials

install wordpress on aws
Congratulations! You’ve just launched a new WordPress installation. However, in order to login to your new WordPress installation, you will first have to obtain your WordPress login credentials. To do this, first click the Services link at the top of the Launch Status page.
install wordpress on aws
Under the Compute column, click on the EC2 link.
install wordpress on aws
Next, click on the Instances link in the left-sidebar column.
install wordpress on aws
On your Instances page, click on the Actions button, then navigate down to Instance Settings then click on Get System Log.
install wordpress on aws
Use the sidebar at the right side of the page to navigate towards the bottom of the instance log. Locate and copy your Bitnami application password.

7. Copy External IP Address

install wordpress on aws
After copying your WordPress password, exit out of the instance log and use the bottom scroll bar to locate and copy your Public IP address.

8. Login to WordPress

install wordpress on aws
In a new browser window, paste the Public IP address followed by wp-admin – this willl take you to the WordPress login page. Enter user as the username, and paste the password that you copied from the previous step into the password field.
install wordpress on aws
Now that you’ve successfully into WordPress, you can change your WordPress website.

That’s it!

You’ve successfully launched a WordPress application in a virtual machine instance on AWS!

Now that your WordPress application is successfully configured, you can look into more advanced functionality such as setting up a domain name and SSL encryption.

If you have any questions or comments about this tutorial, please be sure to post them below!

Thanks,

signature

Up Next…

transfer domain to aws
Now that you’ve installed WordPress on AWS, the next step is to transfer a domain name to AWS.

Related Posts

  • Increase 512MB Upload Limit for All-in-One WP Migration Plugin
  • How to Remove Bitnami Banner WordPress AWS
  • The Most Important Linux Commands (With Examples)
  • How to SSH into EC2 Instances (AWS)
  • How to Migrate WordPress Installations
  • How to Transfer a Domain to AWS
FacebookTweetLinkedInEmail

Filed Under: Amazon Web Services, AWS Applications, AWS WordPress Tagged With: aws, wordpress

Comments

  1. David Smithey says

    September 26, 2020 at 10:47 am

    I have followed the directions on your page and watched the video; however, in my system log there is no box with the application password. I downloaded the log file and searched it for “password” and it does not exist. In fact my log file does not have the box with the application password that your screen shot shows. Has this changed since you wrote your instructions and made this video? Thanks. David

    Reply
  2. Xuefeng says

    August 11, 2020 at 5:50 pm

    Hi Sir,

    Thank you so much for your tutorial. I am just getting started with WordPress and AWS. If I want to migrate the website and change its domain name, is it this the right steps: 1) install WordPress in new AWS account; 2) use plugins to migrate old website into new WordPress website; 3) change new website domain name; 4) maybe redirect the old website domain name to the new one in case old users do not know about this transfer.
    Please help me with this, thank you so much!

    Xuefeng

    Reply
    • Leron Amin says

      September 14, 2020 at 10:11 pm

      Hi Xuefang,

      You would first want to launch a bare-bones WordPress website on AWS and configure the domain name and SSL on this new deployment.

      Once that’s done, you will want to use the All-in-One WP Migration plugin to export your existing site, making sure to use the Find and Replace feature to replace your old domain name with your new one. Once that’s done, generate the export and import it into your running bare-bones WordPress website on AWS.

      Hope this helps and let me know if you have questions,
      Joe

  3. shank says

    July 23, 2020 at 9:42 am

    Hey zen, All aws tutorials are complete..But please make a tutorial on “How to install SSL certificate” on amazon EC2

    Reply
    • Leron Amin says

      August 2, 2020 at 7:30 pm

      Hi Shank,

      I am currently working on it.

      Thanks for the great suggestion,
      Joe

    • shank says

      August 3, 2020 at 1:16 am

      Yeah thanks dear..waiting for your tutorials

  4. Danish Haidri says

    February 18, 2020 at 11:06 am

    Great tutorial, i have launched the instance but when i go to ‘instance settings’ > ‘get system log’, it is a blank screen with black background? How do I get the password to log into WP-Admin?

    Reply
    • Leron Amin says

      February 24, 2020 at 12:54 pm

      Hi Daniel,

      I’m not sure why the credentials aren’t showing up in the log. I would give it a few minutes then check back.

      Talk to you soon,
      Joe

  5. Bibhash Roy says

    February 5, 2020 at 3:52 am

    Hi,

    I have the following questions
    [1] Your youtube video showed the usage of the free tier Amazon Linux free tier instance. I believe this is good for demo. But what instance should I pick for a live production wordpress site? And how do I decide on scaling in future in terms of instance? I am ready to pay for the right AMI.
    [2] Is it better to install bitnami wordpress module on top of lamp stack instead of bitnami wordpress if in future, I need to host multiple wordpress sites on the same instance?

    Reply
    • Leron Amin says

      February 5, 2020 at 12:18 pm

      Hi Bibhash,

      Great questions!

      [1] The free tier instance is just their smallest available machine. It’s a good option for most small-medium size WordPress websites. Unless you know your machine requirements beforehand, I’d recommend starting small and monitoring resource usage to determine if migrating to a bigger machine is necessary.

      [2] If you intend to run multiple WordPress websites on the same instance, I would recommend starting with a more powerful machine. If you’re going to stick with a Bitnami solution, you won’t find as much benefit to installing Bitnami outside of the one-click solution. If you’re looking to scale, I’d instead recommend a generic WordPress Multisite installation on top of LAMP stack.

      Let me know if you have any questions,
      Joe

  6. Ansar Ulhaq says

    February 26, 2019 at 1:49 am

    Hi

    I had EC2 instance running and website hosted. Now my EC2 instance and route53 hosted zone have disappeared but the website is still live. Can you please tell me what is the reason for that and how can I recover my EC2 instance and hosted zone, please?

    Reply
    • Leron Amin says

      March 2, 2019 at 3:50 pm

      Hi Ansar,

      Make sure that you’re viewing resources in the region in which your project was created. For instance, if the instance and hosted zone were created in us-east-1 but your’re viewing resources in ap-south-1, that would explain why those resources aren’t appearing.

      Let me know if you have questions,
      Joe

  7. Lunarshade says

    October 2, 2018 at 2:26 am

    After WordPress installation I want to change WordPress Address (URL) from http to https how can I do that and also email address is not changing. Is their any way to configure WordPress file then pls explain. My website is lunarshade.com I am using cloudflare free SSL certificate.

    Reply
    • Leron Amin says

      October 5, 2018 at 3:25 pm

      Hi Lunarshade,

      Check out the instructions in this tutorial to learn about changing your WordPress URL from http to https.

      Let me know if you have any questions,
      Joe

  8. Aashish Sharma says

    September 11, 2018 at 1:15 am

    i am facing 2 issues.

    1) How to change WordPress Admin email(user@example.com) to my email

    2) accessing DB using phpmyadmin

    Reply
    • Leron Amin says

      September 11, 2018 at 5:53 pm

      Hi Aashish,

      1) You will have to change your admin email from the WordPress admin dashboard under Settings > General.

      2) You can only access phpMyAdmin via SSH tunnel. See the instructions from the documentation here, and the SSH tunnel tutorial that I created here.

      Let me know if you have any questions,
      Joe

  9. Kalyan says

    July 23, 2018 at 11:42 pm

    Does this wordpress incur any charges or is it completely free?. Because I see in one screen there are too many pricing listed.

    Reply
    • Leron Amin says

      July 25, 2018 at 12:39 am

      Hey Kalyan,

      No – it is not completely free.

      The free micro instance is only free for one year. Also, there are several miscellaneous usage charges that aren’t covered under the free tier (DNS, Bandwidth, etc.).

      Hope this answers your question,
      Joe

  10. patrick perez says

    May 10, 2018 at 3:23 pm

    You are the man! this was a very clear tutorial which saved me hours of work. Literally got it up and running in less than 10 minutes. Thanks!

    Reply
    • Leron Amin says

      May 10, 2018 at 4:01 pm

      Thanks – I’m glad you found the tutorial helpful!

  11. Billy says

    February 25, 2018 at 9:20 pm

    Yes sir it Worked like a charm ..THANK YOU!!!!! I want to build a website for towing and Roadside assistance.. Do you have any instructions from just part on that may help me like with the right pictures and SEO and all that good stuff?? Thank you again..

    Reply
    • Leron Amin says

      February 27, 2018 at 12:05 pm

      Hi Billy – I’m glad it helped.

      If you’re getting just started with WordPress, the #1 thing I would recommend is that you install Yoast plugin to guide your website’s SEO.

      Let me know if you have any questions,
      Joe

  12. Kris says

    January 8, 2018 at 1:35 pm

    Hello and thanks for this tutorial!

    My question is what would be the benefits of running a wordpress site on AWS? Would it provide faster page load? More secure? How does the cost of running a 1,000 visitor a month site compare to just regular hosting?

    thanks for your time and help!

    Reply
    • Leron Amin says

      January 9, 2018 at 1:09 pm

      Hi Kris,

      You will generally get better performance from running your website on a cloud platform, dollar-per-dollar, than you would from using a shared hosting provider.

      That being said, the cost of running a 1,000 visitor/month site would proabably be about the same – 2-3 dollars or so – just like what you would pay with a shared hosting provider. For a 1,000 visitor/month site, you won’t see a great deal of added value from migrating to the cloud.

      The main benefit of cloud is it provides virtually unlimited functionality for your site. So if you were anticipating your site growing and adding lots of new features/integrations, then using a cloud platform would be much more cost effective than using a shared hosting provider in the long run.

  13. Hrishi Dere says

    January 5, 2018 at 9:59 am

    Hello Sir,

    As per your suggestion I am currently using Amazon Web Service to host my website. I have install WordPress with Lets Encrypt SSL properly with your article. Thank You for writing such helpful article.
    But I have a minor issue. Currently in my WordPress general settings my email address is user@example.com. I want to change it with my G mail address. When i overwrite my email address it said There is a pending change of the admin email to myaddress@gmail.com but I dont receive any mail to confirm. Is there any way to change it. Thanking You

    Regards
    Hrishi Dere.

    Reply
  14. Hrishi Dere says

    December 16, 2017 at 12:47 am

    Hello Sir

    I need your help in a matter with AWS. I follow your guide for learning cloud system. First I create a successful google cloud for my website but then due to some technical issue I move to AWS. Now the problem is AWS is charging me for using their Route 53 and I were not aware of this. I register my website with Google Domains. So is it possible to use Google DNS for AWS instance with the same configuration I have set for my website now.

    I have contacted AWS twice about this and they said they will remove the Route 53 if I do not want to get charged but they also said that this will bring my website down and I dont want this.
    Please help me as I am very new to cloud management and help me survive my website.

    Thanking You
    Regards

    Reply
    • Leron Amin says

      December 16, 2017 at 1:25 am

      Hi Hrishi,

      Neither Cloud DNS nor Route 53 are free services. The charge for using Route 53 is quite small; it starts at 50 cents per hosted zone, and 40 cents for the first 1,000,000 queries. So the cost of using Route 53 with most WordPress websites would be between 50-90 cents per month.

      Google’s Cloud DNS service follows a similar pricing model, and you can expect to pay a comparable amount whether you use Route 53 (roughly 50 cents per month) or Cloud DNS (roughly 25 cents per month).

      I hope this answers your question! 🙂

      Talk to you soon,
      Joe

  15. Leron Amin says

    November 21, 2017 at 8:58 pm

    Did this tutorial work for you?
    Please share your questions and comments below!

    Reply

Leave a Reply Cancel reply

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

Want Exclusive Tutorials?

Welcome to One Page Zen!

Through this blog I hope to introduce web developers to cloud computing!

author-bio

facebook-support-group kinsta-cloud-hosting

Want Exclusive Tutorials?


Contact | Sitemap | Legal | Privacy Policy | Affiliate Disclosure
      Copyright © 2017 - 2019 One Page Zen
Share this Article

Email sent!