Hosting WordPress Using Amazon S3
SPL-39 Version 4.0.9
© 2019 Amazon Web Services, Inc. and its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited.
Errors or corrections? Email us at email@example.com.
Other questions? Contact us at https://aws.amazon.com/contact-us/aws-training/
This lab demonstrates how to use Amazon S3 for static website hosting. In this lab, you convert a WordPress website into a static website hosted on Amazon S3. The same concepts for enabling static website hosting in Amazon S3 covered in this lab can be used for hosting any static website, not just WordPress.
With a static website, individual webpages include static content. They might also contain client-side scripts. By contrast, a dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. Amazon S3 does not support server-side scripting.
WordPress by its nature is a dynamic website. In order to host a dynamic website, some form of a web server is required, such as an instance running on Amazon EC2 to host the web server application and database. This requires you to maintain not only the web application, but also the host operating system where it is running. You may also need to scale your application as the load increases, requiring more resources and adding to your maintenance and costs. An alternative to this is to convert your WordPress site to a static website. This has the advantage of dramatically reducing the hosting cost for a website while supporting a large-scale user base.
This lab will cover:
- Configuring WordPress on Amazon EC2.
- Exporting WordPress to static files.
- Copying static files to an Amazon S3 static website.
- Creating a script to send your Wordpress changes to Amazon S3.
Technical knowledge prerequisites
In order to successfully complete this exercise, you should be familiar with basic website concepts.
- At the top of your screen, launch your lab by clicking
This will start the process of provisioning your lab resources. An estimated amount of time to provision your lab resources will be displayed. You must wait for your resources to be provisioned before continuing.
If you are prompted for a token, use the one distributed to you (or credits you have purchased).
- Open your lab by clicking
This will automatically log you into the AWS Management Console.
Please do not change the Region unless instructed.
Common login errors
Error : Federated login credentials
If you see this message:
- Close the browser tab to return to your initial lab window
- Wait a few seconds
- Click again
You should now be able to access the AWS Management Console.
Error: You must first log out
If you see the message, You must first log out before logging into a different AWS account:
- Click click here
- Close your browser tab to return to your initial Qwiklabs window
- Click again
Join Qwiklabs to read the rest of this lab...and more!
- Get temporary access to the Amazon Web Services Console.
- Over 200 labs from beginner to advanced levels.
- Bite-sized so you can learn at your own pace.