Hosting WordPress Using Amazon S3
SPL-39 Version 4.1.4
© 2020 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, corrections or other questions? Contact us at AWS Training and Certification.
This lab demonstrates how to use Amazon S3 for static website hosting. In this lab, you convert a WordPress website that is running on an Amazon EC2 instance into a static website hosted on Amazon S3. WordPress is an open-source content management system that can be used to host web pages, blog posts, and even shopping websites. It runs more than 60 million websites on the Internet and is highly extensible via a plugin and templating system.
WordPress by its nature is a dynamic website. A dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. In order to host a dynamic website, some form of a web server, such as an Amazon EC2 instance, is required to host the web 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 is to convert your WordPress site to a static website, which can dramatically reduce the hosting cost for a website while supporting large-scale user base. With a static website, individual webpages include static content and might also contain client-side scripts, but server-side scripts are not necessary. Note that Amazon S3 does not support server-side scripting.
The same concepts covered in this lab to enable static website hosting in Amazon S3 can be used for hosting any static website.
When you finish the lab, you will be able to:
- Configure WordPress on an Amazon EC2 instance.
- Export a WordPress site to static files.
- Copy static files to an Amazon S3 static website.
- Create a script to send 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
Inscrivez-vous sur Qwiklabs pour consulter le reste de cet atelier, et bien plus encore.
- Obtenez un accès temporaire à Console Amazon Web Services.
- Plus de 200 ateliers, du niveau débutant jusqu'au niveau expert.
- Fractionné pour vous permettre d'apprendre à votre rythme.