How To Install and Run WordPress on AWS EC2?

Here is a fantastic illustration I’ve come across on how to get your WordPress site up and running in the cloud in 15 minutes.  Very helpful!


One thing we often hear from Web developers, especially those who offer Web site design and consulting services, is the need to get a Web site up quickly, which runs fast and gives them total control of the server for maximum flexibility and scalability.  Today’s post offers a quick walkthrough on how to run WordPress on Amazon’s EC2 Cloud and the Microsoft Web Platform. After you followed the steps in this walkthrough you will have a live production WordPress blog on the Internet.
Here are quick summary of the steps you have to follow:

  1. Sign up for Amazon EC2
  2. Start an “Microsoft Web Platform – WordPress ” instance via the Amazon Web Services Management Console.
  3. Retrieve the Administrator password and connect to the instance via RDP.
  4. Finalize the WordPress installation.
  5. Enter blog posts and browse to your blog.

1. Amazon EC2 Sign-up

Signing up for Amazon EC2 is a straightforward process. All you need is

  • a valid e-mail address,
  • a valid phone number you can be reached at (make sure the phone is nearby, you will be called during sign-up!),
  • and a valid credit card number

The sign-up URL is It’s even easier if you are already an Amazon customer because you can use your existing credit card information and e-mail address.

Note: Billing data verification usually happens within minutes. It might take a couple of hours though. Currently (April 2010) the error message you get is not very meaningful:
“It looks like you don’t have an EC2 account*. To use the Amazon EC2 Console you must first sign up for Amazon EC2. It’s quick & free to sign up.”
Just be patient and wait for a little longer.

2. Starting an “Microsoft Web Platform – WordPress” Instance

Once you are signed up successfully you will have access to the Amazon EC2 Management Console. The URL is

Once you are logged in make sure you switch your region to “US West”. The Microsoft Web Platform images are currently only available in the US West region. Before we do anything lets set up the firewall rules (called Security Groups in Amazon lingo) for your WordPress instance.

Firewall Rules

Select the item “Security Groups” on the left hand side. Your existing Security Groups will show in the center pane. Click the “Create Security Group” button on top.

Name the new group you are about to create, for example “Microsoft Web Platform Firewall Rules”.

You want to configure the following rules:

  • RDP is needed so you can connect via Remote Desktop to your Amazon EC2 instance. The current “Source (IP or group)” settings allows these connections from any IP address. Please lock down this settings if you have more stringent security requirements.
  • HTTP is needed so your customers can connect via HTTP your Amazon EC2 instance.
  • HTTPS is needed if you plan to use SSL. You don’t need this setting if you do not plan to use SSL.
  • Port 8172 is opened to allow remote administration of IIS and publishing of content via Visual Studio 2010. You don’t have to open port 8172 if you do not plan to use remote administration or remote content publishing.

Now we are ready to launch an EC2 DotNetNuke instance.

Launching an DotNetNuke Instance

Click the “Instances” menu item on the left hand sid eand click the “Launch Instance” button.

Now select “Community Images” in the resulting dialog.

By typing “microsoft/” in the “Community AMIs” dialog you will reduce the selection to the four Microsoft images:
Press “Select” in the  “Microsoft Web Platform – WordPress …” row.

In the next dialog page (Instance Details) you can select how much computing power you want to have for your WordPress instance. It’s probably prudent to start with type small. Click the “Continue” button. Nothing to worry about on the next page either. Just click “Continue” at the bottom of the “Advanced Instance Options” dialog. Now we are getting to the “Create Key Pair” dialog.

If you already have a key, simply use it. If not you have to create one by entering a name for your key pair and clicking the “Create & Download Key Pair” button. As soon as you click the button a key pair will be created by Amazon an you are asked by your browser to download it. Save the file in a location where you will find it later. The key pair you created will allow you to decrypt the Administrator password that Amazon creates for your WordPress instance. Click the “Continue” button.

Note: Internet Explorer might not show the download dialog that asks you where to save the key pair file. If that happens to you, please look for the file (<key pair name>.pem) in Internet Explorers Temporary Files folder. On Windows 7 search for *.pem in “%userprofile% AppDataLocalMicrosoftWindowsTemporary Internet Files”. Make sure you copy the .pem file to a more permanent directory .

Once you created your key pair you can configure firewall rules. You could for example only allow HTTP requests to the machine. Amazon calls firewall rules “Security Groups” which is a bit confusing if you ask me. For this demo we are picking the “default” Security Group which doesn’t put any firewall restrictions on the instance. You might want to configure these settings to be a bit more restrictive later on.
Click “Continue” to move to the “Launch” page. The only thing left to do on the summary page is to press the big “Launch” button. Once you do that Amazon EC2 will spin up your personal virtual instance of our WordPress image. Good job. It’s time to get some coffee. Spinning up your instance will take some time, usually around 3 to 5 minutes.

3. Retrieving the Administrator Password

After finishing the “Launch Instance” wizard you should be back on the main page of the AWS Management Console. Click the “Instances” link to figure out how your WordPress instance is doing.

You should see something like this:

Right click on the row and select the “Get Windows Password” menu item.

Now it’s time to use the key pair file (<your key pair name>.PEM) that you created before. If the password is already available (you might have to wait a couple of minutes as said before) you will see the following dialog:

Open the .PEM file in notepad and copy it to the clipboard (Ctrl+A selects all, Ctrl+C copies it into the clipboard). Now paste the contents into the textbox of the dialog (Ctrl+V). Click the “Decrypt” button.

Note: Because decryption is a very CPU intensive operation you might run into the following security dialog if you use Internet Explorer: Contrary to intuition you have to press “No” to go on. You probably have to hit “No” a couple of times to get your password decrypted. More details on this security feature can be found here:
If you are interested in a more permanent fix you can execute the following command on command-line: reg add “HKCUSoftwareMicrosoftInternet ExplorerStyles” /v MaxScriptStatements /t REG_DWORD /d 0x5F5E100
By setting the MaxScriptStatements to 100,000,000 (0x5F5E100) I don’t see any security popups anymore.

Once the password is decrypted write it down or copy it to the clipboard and close the dialog. Finally we are ready to connect to the WordPress instance. Right click the instance and select “Connect”.

Click “Download shortcut file” in the dialog that follows:

The file to be downloaded is an .RDP file that has all the right settings to connect you to the EC2 instance in the cloud. Click “Open” if you use IE or double click the file in Firefoxes Download window and a Remote Desktop session is established. When Remote Desktop asks you for credentials you simply enter the username “Administrator” and the password that we retrieved previously.
Once connected you will get logged on to the remote machine. Don’t get to impatient because after the logon it will take a few moments until the WordPress install kicks in.

4. Finalization of the WordPress Installation

The initial logon will automatically launch the WordPress installation via the Web Platform Installer. You should see the following dialog:

Just click “Install” and you will be asked if it is ok to download the latest WordPress and MySQL bits. Most likely a local copy will be used for the install. Only if newer bits are available Web Platform Installer will go out and download new binaries. This should only take seconds given Amazon’s bandwidth.

Next you get asked for your MySQL password. Pick a good one!

After the MySQL install Web Platform Installer asks you some additional questions with regards to your WordPress installation.

Step 1 of 2 in Web Platform Installer

You can leave everything as it is. Only one change you might want to consider:
If you want to install wordpress as the root of your site you might want to remove the string “wordpress” in the “Application name” textbox. If you don’t do that you have to always enter http://%3cname-of-your-site/wordpress. Leaving the field empty will put the wordpress files into the root of the Default Web Site, i.e. you can enter http://%3cname-of-your-website/> to get to your WordPress blog. If you install WordPress in the root you will get a popup that warns you about overwriting content. That’s ok though. It only overwrites IIS’s default home page.

Click “Yes” and then “Continue”.

Now the last few settings – Step 2 of 2

To make the WordPress install successful you need to configure WordPress’s MySQL connection and the credentials you want to use to administer WordPress. Enter the MySQL password you picked previously as the Database Administrator Password. These credentials will be used to create the wordpress database within MySQL.

Then pick some new credentials for the user account that WordPress itself uses to connect to the WordPress database in MySQL:

Everything else can be left in place without impacting the installation.
Once the install finishes you can get started with WordPress. Click the “Launch WordPress” link on the final Web Platform Installer page:

Now you are ready to go and you can customize WordPress to your liking.

One last tip: You can get to your blog from outside the Remote Desktop session. Your instance has a public DNS address you can use.

Copy the public DNS name shown in the AWS Management Console to the clipboard and enter it into the browser. If you need a more permanent DNS address you have to register a DNS name and also get an Elastic IP address from Amazon. But this is a story for another day.


It’s amazing how easy it now is to get a dedicated Web server on the internet and get started. With the help of Amazon EC2, the Microsoft Web Platform Installer and WordPress we just deployed a working and fully configured blog application to the cloud. Let us know what you think about this:Questions or feedback? Send itto

Full Credit to Thomad at: ISS.Net

Follow Us!


Established in 2009, is recognized as one of the leading authorities in cloud computing information. Most of the excellent CloudTweaks articles are provided by our own paid writers, with a small percentage provided by guest authors from around the globe, including CEOs, CIOs, Technology bloggers and Cloud enthusiasts. Our goal is to continue to build a growing community offering the best in-depth articles, interviews, event listings, whitepapers, infographics and much more...
Follow Us!

10 Responses to How To Install and Run WordPress on AWS EC2?

  1. This is great! I've been looking to push off into the cloud with my own blog.

    One question however: is WordPress only available on IIS/Windows? I'd much prefer a *nix/Apache instance as I am much more familiar with administration in that environment…

  2. curious what it might cost to have a small blog running… say 1,000 page views a month

Join Our Newsletter

Receive updates each week on news, tips, events, comics and much more...

Can I Contribute To CloudTweaks?

Yes, much of our focus in 2015 will be on working with other influencers in a collaborative manner. If you're a technology influencer looking to collaborate with CloudTweaks – a globally recognized leader in cloud computing information – drop us an email with “tech influencer” in the subject line.

What is the 12/12 Program?

This program is designed to better handle the thousands of requests we receive from people looking to submit articles. The 12/12 program is the commitment of 12 articles delivered over a 12-month period.  

Wait! What if I just want to submit one article?

Our popular pay as you go sponsorship program provides the flexibility to submit as you wish and is designed for all budgets.


Cloud Infographic – Wearable Tech And Preventative Healthcare

Cloud Infographic – Wearable Tech And Preventative Healthcare

Wearable Tech And Preventative Healthcare There are so many exciting new opportunities available to utilize wearable technology in the future.  Areas such as nanotechnology disease monitoring, crowdfunding to wearable accessories are some excellent examples of the potential. Estimates vary, but appear to suggest that the market will produce between $14-50 Billion over the next few years. Included below

Ten Tips For Successful Business Intelligence Implementation

Ten Tips For Successful Business Intelligence Implementation

Ten Tips for Successful Business Intelligence Implementation The cost of Business Intelligence (BI) software goes far beyond the purchase price. Time spent researching, implementing, and maintaining your BI investment can snowball quickly and mistakes are often expensive. Your time is valuable – save it by learning from other businesses’ experiences. We’ve compiled the top ten

Knots And Cloud Service Providers

Knots And Cloud Service Providers

How Do These Two Compare? In Boy Scouts, I learned how to tie knots. The quickest knot you can tie is the slipknot. It’s very effective for connecting one thing to another via the rope you have. It was used in setting up tents, mooring boats to docks temporarily and lifting your food up into

Big Data

To Have and Have Not: Big Data Initiatives In Developing Countries

To Have and Have Not: Big Data Initiatives In Developing Countries

Big Data Initiatives In Developing Countries The poor of the developing countries are becoming increasingly connected, to the point where they too are part of the Big Data revolution that’s happening across the globe. It didn’t come with laptops, though, as some supposed it would. Whereas it costs a fortune to connect broadband to a

Big Data In Your Garden: Initiatives For Better Understanding Nature

Big Data In Your Garden: Initiatives For Better Understanding Nature

Big Data in Your Garden Big Data and IoT initiatives are springing up all across the globe, making cities, protesters–and just about everything else–smarter. However, thus far there’s been little attention paid to the interactions between these bizarre technologies and living things other than humans. Biology, that is, human biology is one field where Big

Who Holds the Key to the City: Big Data and City Management

Who Holds the Key to the City: Big Data and City Management

Big Data and City Management Cities like New York, Madrid, and especially Rio de Janeiro are augmented with Big Data-powered initiatives that range from combating crime with predictive analytics (New York & Madrid) to providing real-time data for improved management. Although Big Data is no panacea and is mainly used in conjunction with a greater

Internet of Things

Where’s the Capital of the Internet of Things?

Where’s the Capital of the Internet of Things?

Where’s the Capital? We all know the capitals of fashion are London, New York and Paris, while the capital of film is Hollywood (or Bollywood!) – but what’s the new capital of the internet? Specifically, the internet of things? The answer – according to new research by Ozy – might surprise you. It’s not Tokyo, Seoul,

Smart Cities – How Big Data Is Changing The Power Grid

Smart Cities – How Big Data Is Changing The Power Grid

Smart Cities And Big Data As Anthony Townsend argues in his SMART CITIES, even though the communications industry has changed beyond recognition since its inception, the way we consume power has remained stubbornly anachronistic. The rules of physics are, of course, partially to blame, for making grid networks harder to decentralize, as opposed to communication

Aggregated News

Popular News Sources

New Funding For Acumatica ERP Cloud Business – $13 Million Invested

New Funding For Acumatica ERP Cloud Business – $13 Million Invested

Acumatica ERP Cloud Business Acumatica, a well known ERP cloud services company has raised over $13 millions in new funding led by Bain Capital Owned-MYOB. This is exciting news for the company and demonstrates the high level of adoption and commitment by their clients and partners. This investment validates the market acceptance of the Acumatica solution,” said

Why Microsoft CEO Satya Nadella Loves What Steve Ballmer Once Despised

Why Microsoft CEO Satya Nadella Loves What Steve Ballmer Once Despised

“I don’t want to fight old battles,” says Microsoft CEO Satya Nadella. “I want to fight new ones.” It’s Sunday evening, and Nadella is sitting in a glass-enclosed room at the back of a Japanese restaurant in San Francisco’s North Beach neighborhood, eating sushi with a few reporters. The post Why Microsoft CEO Satya Nadella Loves

Apple sales soar after record-breaking iPhone 6 and 6 Plus launch

Apple sales soar after record-breaking iPhone 6 and 6 Plus launch

The US tech giant reported a 16 per cent jump in iPhone sales between July and September, and the strongest growth in Mac computer shipments in years. Read the source article at About Latest Posts Follow Us!CloudTweaksEstablished in 2009, is recognized as one of the leading authorities in cloud computing information. Most of