Amazon Elastic Compute Cloud
Microsoft Windows Guide (API Version 2012-04-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Deploying a WordPress Blog on Your Amazon EC2 Instance

This section walks you through the process of creating and deploying a WordPress website on your Amazon EC2 Windows instance.


Prerequisites

Before you get started, be sure you've done the following:

  • Launched an Amazon EC2 instance from an AMI that has Windows Server 2008 R2 and Internet Information Services (IIS) pre-installed. For information on launching an Amazon EC2 instance, see Getting Started.

  • Checked to ensure that the security group in which you're launching your Amazon EC2 instance has port 80 open for inbound traffic. If port 80 is not open, the WordPress site will not be accessible from outside the instance.

  • Connected to your Amazon EC2 instance.

Task 1: Installing the Microsoft Web Deployment Tool

  1. Verify you've met the conditions in Prerequisites.

  2. Configure Server Manager Settings.

    1. In your Amazon EC2 instance, click Start.

    2. Right-click Administrative Tools.

    3. Select Server Manager.

    4. In the Server Manager box, in the Security Information panel, click Configure IE ESC.

      Server Manager

    5. In the Internet Explorer Enhanced Security Configuration box, under Administrators, select the Off button.

    6. Click OK to close the Server Manager box.

  3. In the EC2 instance, in the Internet Explorer web address field type http://www.iis.net/download/webdeploy.

  4. In the Download Extension box, click Install to install the latest version of Web Deploy.

    Web Deploy Install

  5. Click license terms next to the green Install Now button to read the license terms.

    Web Deploy License Terms

  6. After you read and decide to agree to the license terms, click the green Install Now button.

  7. When prompted, click Run to install the Microsoft Web Deployment Tool. The Web Platform Installer 3.0 wizard appears.

    Web Platform Installer

  8. Click Install. A list of third-party application software, Microsoft products, and components appears.

    Web Platform Installation

  9. Click I Accept. The Web Platform Installer begins to install the software. The wizard will indicate when it has finished installing the software.

    Web Platform Installer

  10. Click Finish. Next the Web Platform Installer launches and you'll need to install WordPress.

Task 2: Installing WordPress

To Install WordPress

  1. At the top of the Web Platform Installer 3.0 window, click Applications.

  2. Navigate to the WordPress row and click Add.

    WordPress Install

  3. Click Install.

  4. Select MySQL for the database you want to install, and, in the This database engine is not installed box, select Install it on my machine.

    WordPress Install

  5. Click Continue. A list of third-party application software, Microsoft products, and components appears.

    WordPress Install

  6. Click I Accept. The page where you enter your MySQL passwords appears.

    WordPress Install

  7. Type a password for your MySQL database in the Password box and the Confirm Password box.

    After the Web Platform Installer finishes installing the software, you will be prompted to configure your new site.

  8. For Step 1 of Enter your site information:

    1. Clear the default application name in the 'WordPress' application name: field and leave it blank.

      WordPress Install

    2. Leave the default information in other fields and click Continue.

    3. In the Overwrite box, click Yes.

      Overwrite Dialog

  9. For Step 2 of Enter application information, enter the following information.

    1. In the Database Administrator Password box, type a password.

    2. Leave Database User Name set to the default value.

    3. For Database Password, type a password in the Password for the database user name box and the Confirm box.

      Web Platform Installation

    4. Click Continue. The Web Platform Installation completion page appears.

      Web Platform Installation

  10. Click Launch WordPress. The WordPress Welcome page appears.

  11. On the Welcome page, enter the following information.

    1. In the Site Title box, type your site title.

    2. In the Username box, leave the default set to admin.

    3. In the Password, twice boxes, type your password twice.

    4. In the Your E-mail box, type your email address.

      Wordpress Welcome

    5. Click Install WordPress. The WordPress Success page appears.

      WordPress Success

  12. Click Log In. The Log In page appears.

  13. On the Log In page, enter the following information.

    1. In the Username box, type admin.

    2. In the Password box, type your password.

      WordPress Log In

    3. Click Log In. The WordPress Dashboard appears.

  14. In the QuickPress box, enter the following information.

    1. In the Title box, type the title you want.

    2. In the Content box, type some content.

      WordPress Dashboard

    3. Click Publish. A notification appears in which you can choose to view or edit the post.

      WordPress View/Edit Post

  15. Click View post. Your post appears.

    WordPress Post

Now that you can see your WordPress blog on your localhost, you might want to publish this website to other users as your default site on your Amazon EC2 instance. The next task walks you through the process of modifying your WordPress settings to point to your Amazon EC2 instance instead of your localhost.

Task 3: Configuring Your WordPress Site

To configure the default settings for your WordPress site

  1. Navigate back to IIS, expand the localhost and Sitesnodes, select the Default Web Site. In the Actions pane on the right, In the Browse Web Site group box of the Internet Information Services (IIS) Manager window, click Browse *:80 (http).

    WordPress Config

  2. The website appears at http://localhost/.

    [Note]Note

    If you do not see your WordPress site, click the Refresh button.

    WordPress Config

  3. Click Log In and enter the username and password. The WordPress Dashboard appears.

  4. In the Dashboard left navigation pane, click Settings. The General Settings page appears.

  5. On the General Settings page, enter the following information.

    1. In the WordPress address (URL) box, type the public DNS address of your Amazon EC2 instance. For example, your URL may look something like http://ec2-174-129-142-249.compute-1.amazonaws.com. For information about getting your public DNS address of your Amazon EC2 instance, see the “Review your settings and launch the instance” step in the Amazon Elastic Compute Cloud Getting Started Guide.

    2. In the Site address (URL) box, type the same DNS address of your Amazon EC2 instance that you typed in the previous step.

      WordPress Post

    3. Click Save Changes at the bottom of the page.

  6. Open a browser on a computer other than the EC2 instance hosting WordPress, and, in the web address field, type your public DNS address of your Amazon EC2 instance. Your WordPress site appears.

Congratulations! You have just deployed a sample WordPress site on an Amazon EC2 instance.