How to Setup Free WordPress Blog on Amazon EC2 Free Tier

Editor Ratings:
User Ratings:
[Total: 0    Average: 0/5]

Here is a guide that explains how to setup a Free WordPress blog with Free Amazon EC2.

Amazon AWS had launched a free tier sometime back that gives you 1 full year of limited access to some of Amazon’s AWS services. One of these services include an Amazon EC2 instance, which in simple terms is a VPS. So, basically, you get 1 full year of access to VPS. This ECS instance is “Mini”, and comes with 613 MB of RAM.

This is quite a small VPS, but actually it is good enough for basic WordPress websites which do not get lot of visitors. If you are just starting with a blog, and somehow did not like my earlier article about free wordpress hosting, then this free VPS setup from Amazon would work pretty well for you. And if you somehow exceed the resources available in this EC2 instance, that would mean you are making enough money to spend on a decent hosting package :)

Here is a simple tutorial that shows how easy it is to setup WordPress with Amazon EC2 for free:

    1. You need to sign up for an Amazon AWS account, if you do not have one. Note: Free tier is available for new accounts only, so you would want to sign up a new account. Even though you are signing up for a free tier, you will need to provide your credit card, as any overage will be charged to that.
    2. After that, go to to Amazon EC2 page.
    3. In this, click on “Sign Up for Amazon EC2”, and just follow the instructions there. During the process, Amazon will also make a call to your phone number to confirm your account.
    4. Once all that is done, click on “Account” option in the menu at top, then select “Amazon EC2” from drop-down, and click Go.
    5. At this point, you are on Amazon EC2 management console, as in the screenshot below. Now the fun part starts :)
    6. In this console, click on the button of “Launch Instance”.

Amazon EC2 Launch Instance
Sponsored Links

    1. Once you click this, a pop-up window will come that will guide you through the setup process. Just keep following the steps that I mention here closely, and you will be all set.
    2. The first step here is to choose AMI or Amazon Machine Image that you want to install on your server. In simple terms, you basically choose the OS. However, there are lot of customized images available here which come with other software also pre-configured. In our case, we are going to install WordPress, so we’ll use an image that is customized for WordPress. I chose a Bitnami WordPress image for this, as that is the most simple to install (IMHO). To see which image you need, go to the Bitnami link that I posted earlier, and scroll to the bottom of page. It will show images for latest version of WordPress. I am writing this article at the time when 3.0.5 is the latest version. So, I chose Bitnami image “ami-76bb481f”. Note: choose the image version that mentions “EBS” in “Root Device'” column.

Amazon Bitnami WordPress Image

    1. Just copy the image name, and go back to the Amazon EC2 pop-up window that we were working on. In the pop-up window, click on the “Community AMIs” tab, and enter the Bitnami image name that we copied above in the blank text box. Amazon will show AMI for that in a few seconds. Just click on “Select” button with the AMI.

Amazon Select WordPress

    1. In the next step, we need to choose the Instance type. This is a very important step, so be careful. In the Instance Type drop-down, select “Micro (t1.micro) (Free Tier Eligible)”. This is the only instance that is free. If you select any other instance, you’ll be charged for that (remember that Amazon already got your credit card information in the first step). Then click on “Continue”.

Amazon EC2 Request Instance

    1. You can leave next window as it is, and click on “Continue”.
    2. In the next window you are asked to create tags. I am really not sure what is it required for, but I still went ahead and made a key / value pair, just in case it is required in future.
    3. In the next window, you will be prompted to create a key pair. This is required to get SSH access to your instance. So, provide any name for your key pair, and then download it.

Amazon EC2 key pair

    1. The next step is Configure Firewall. Do not go with Default configuration. Instead, click on radio button for “Create a New Security Group”. From the drop-down box at bottom, select options of “HTTP”, “HTTPS”, and “SSH”. After selecting every option, click on “Add Rule” button on the Right. This will allow you access to your instance. You will also need to provide a name for your Security Group. You can choose any name. Once you are done with this, click on “Continue”.

Amazon EC2 Firewall Settings

    1. Now you come to the last screen of setting up your instance. Just click on “Launch” at bottom of this screen.
    2. This will take you back to your Amazon EC2 console, and you will see your new server getting started there. It can take a couple of minutes for this new instance to launch.
    3. Once it has launched (the status column shows “running”), then just click anywhere on the row.
    4. This will show description of the instance at the bottom. In this scroll down, and you’ll come to a row that has “Public DNS”. On the right side of this, you will see a URL. Just copy this URL, and paste in your browser. Note: It might not work for a few minutes, but it will work after that.

Amazon EC2 Public DNS

  1. Now, you will see a Bitnami page. In this page, click on the WordPress link at the top, and you will see your WordPress blog running!
  2. To login to your WordPress blog, you need to append “/wp-admin” at end of the URL on which you see your Wordpres blog. Default username and password for Bitnami is: user/bitnami
  3. Now you’ll be in WordPress admin area, and can do anything; like install themes or plugins, and create new posts.

This is your free WordPress blog. You will immediately notice what a great performance you get by using Amazon EC2. It is quite hard to believe that all of it is completely free. Here is the free WordPress blog that I setup using the steps that I mentioned above:

Now, it is a good time for me to admit that I am not a Linux expert; so if anything doesn’t goes as per what I have mentioned above, I would most probably not have a clue that what might have gone wrong. However, I did try these steps multiple times, and they always worked. Also, I have not mentioned that how can you change the ugly looking URL to your own domain. I think some sort of CNAME setting would take care of that, but I am feeling too sleepy at this time, to do any further research on that :)

Here are some more resources that you might find useful:

Link 1: A similar guide as above from Bitnami

Link 2: Scroll a bit down in this article to see how to get SSH access to your free WordPress blog.

Link 3: This article explains how to migrate your existing WordPress blog to this Amazon EC2 instance.

Editor Ratings:
User Ratings:
[Total: 0    Average: 0/5]
  • Bill Bliss

    Ishan thanks for this post!

    I host on Rackspace, but I can’t do any debugging because I don’t have access to php.ini, which is why I was thinking of using EC2. But I hadn’t actually dove in to figure out exactly how to do it. So this is perfect!

    • Ishan

      @Bill Bliss: You are welcome. The setup is easy on EC2. However, only reason I am not moving my website to that is lack of support. If I run into some WordPress specific error that results in “Internal Server Error”, my website would be down till I am able to figure out what went wrong. If you don’t mind me asking, how are you planning for support for your website?

  • Republica Dominicana

    Thank youuuuuuuuu, Been looking everywhere for this, i have a question though. Is there any way to use RDS Amazon Relational Database Service as the database ???

    Please bare with me total newbie at this……….

    • Ishan

      I have not tried that, so not sure how that works :)

    • Jonathan

      RDS (Relational Database Service) starts up a MySQL database. You would just install WordPress and provide the username/password and URL to your RDS instance when you install. It would work just like a local MySQL install.

      Note: Running a dedicated RDS instance is NOT part of the free tier – and would cost money. Also – there would be latency introduced between the EC2 instance and the RDS instance. I would suggest running an RDS instance in the same region (at a minimum) and within the same Availability Zone on the same region (for optimal performance). IE: US-EAST for both at a minimum (US-EAST-1/US-EAST-2/etc for both if you want serious speed).

      I tried this out with an Amazon CloudFront template that did this for me – so I might be missing some step to do it manually. However it is possible because RDS is just a MySQL database.

      • Jonathan

        Sorry – not specifically saying US-EAST is the best. I just mean pick the same region for both the EC2 and the RDS instance. And if you want to ensure the speed is optimal – you’d want to specify the Availability Zone (AZ) within that region to be the same for both servers.

        Of course pick the Region that makes the most sense for your users (US/Asia/Europe) and also note that different regions do have different costs associated with them. US-EAST is just the one I’ve used most often (and I think is the cheapest).

  • Republica Dominicana

    Thanks anyways, i saw in another article in the web the posibility of doing this but no actual refference into how, so i was just intrigued about it. At the moment i use only cloudfront with origin pull with supercache plugin on my wp website.

    Please take a flash at it
    Republica Dominicana

    Not te fastest thing in the world but pretty decent when you take into account its practcally a pic site and all the plugins i use, and im also on shared hosting.

  • Pingback: to Amazon EC2 Migration with Bitnami « Business Innovations()

  • Pingback: 如何把WordPress安装到Amazon EC2云主机 | 小楼的站点()

  • John Cook

    I find it a lot simpler to use the TurnKey Hub [1] to launch instances, no need to mess with security groups, finding the correct AMI, etc.

    They recently announced support for Micro instances too, which is way cool

  • Pingback: Op een andere wolk | MyBlog()

  • Pingback: Moving to websites to Amazon EC2 « Confero Litterae()

  • SM

    Thanks for this how-to. However, if i want to point my domain to this hosting, what and where would I get the DNS settings?

    • Ishan

      @SM: You should be able to find that in your control panel of AWS.

  • Harrison

    Great installation, easy to follow for people who know little. however, I am encountering one big problem. In WordPress, when I try to install a template or plugin, it prompts me to enter my FTP credentials. Looking for a hostname, FTP username, FTP password, and connection type (FTP vs. FTPS). I don’t really know how to find that. Any insight here?

  • Pingback: 在云端 - 安装WordPress到Amazon EC2云主机 | Lorelei Blog()

  • Jannysmith
  • jlynnedaniels

    Do you know how to change the www. address?

  • Dave Adams

    I am finding these instruction out dated. I guess AWS is always changing and I tried my best to following them and was unable to connect to my new instance

How to Setup Free WordPress Blog on Amazon EC2 Free Tier

by Ishan Bansal time to read: 5 min