Docsity

Deploying a WordPress Website on AWS: A Step-by-Step Guide by Nguyen Thi Tuyet Nhung, Study Guides, Projects, Research of Information Technology

Partial preview of the text

Download Deploying a WordPress Website on AWS: A Step-by-Step Guide by Nguyen Thi Tuyet Nhung and more Study Guides, Projects, Research Information Technology in PDF only on Docsity!

BTEC FPT INTERNATIONAL COLLEGE

INFORMATION TECHNOLOGY

ASSIGNMENT 2

UNIT: CLOUD COMPUTING SOLUTIONS

STUDENT : NGUYEN THI TUYET NHUNG

CLASS : IT

STUDENT ID : BDAF

SUPERVISOR : NGUYEN THE XUAN LY

DaNang, August 2022

ASSIGNMENT 2 FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 16 : Cloud Computing Solutions Submission date 23 / 08 / Date received (1st sub- mission) Re-submission date Date received (2nd submission) Student name Nguyen Thi Tuyet Nhung Student ID BDAF Class IT16101 Assessor name Nguyen The Xuan Ly Student declaration I certify that the assignment submission is entirely my own work and I fully understand the con- sequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature: TUYETNHUNG Grading grid P5 P6 P7 P8 M3 M4 D2 D

ii

TABLE OF CONTENT

Contents TABLE OF CONTENT .............................................................................................. ii LIST OF TABLES AND FIGURES .......................................................................... iv LIST OF ACRONYM ............................................................................................... viii INTRODUCTION ...................................................................................................... 1 CHAPTER 1. DEVELOP CLOUD COMPUTING SOLUTIONS USING SERVICE PROVIDER’S FRAMEWORKS AND OPEN SOURCE TOOLS. (LO3)................................ 3 Configure a Cloud Computing platform with a cloud service provider’s framework. (P5) ............................................................................................................... 3 Implement a cloud platform using open source tools. (P6) .......................... 14 2.1 Install Wordpress on Ubuntu v18.04 .......................................................... 14 2.2 Customize WordPress site......................................................................... 25 2.3 Website interface ....................................................................................... 28 2.4 Review some functions of website ............................................................. 35 2.4 Review some admin functions in the dashboard ........................................ 40 CHAPTER 2. ANALYSE THE TECHNICAL CHALLENGES FOR CLOUD APPLICATIONS AND ASSESS THEIR RISKS. (LO4) ...................................................... 49 Analyze the most common problems which arise in a Cloud Computing platform and discuss appropriate solutions to these problems. (P7) .............................. 49 1.1 Common Cloud Issues............................................................................... 49 1.2 Appropriate solutions to the above problems ............................................. 49 1.3 IaaS security issues ................................................................................... 50 1.4 Public cloud security issues ....................................................................... 51 Assess the most common security issues in cloud environments. (P8) ....... 52 CONCLUSION ........................................................................................................ 55

iii

CRITICAL EVALUATION ....................................................................................... 56

REFERENCES ....................................................................................................... 57

viii

LIST OF ACRONYM

RAM Random Access Memory TCP/IP Transmission Control Protocol/ Internet Protocol AWS Amazon Web Services CPU Central Processing Unit SaaS Software as a Service PaaS Platform as a Service IaaS SQL IAM API APT EC Infrastructure as a Service Structured Query Language Identity and Access Management Application Programming Interface Advanced Persistent Threat Amazon Elastic Compute Cloud

Perfomed Student: Nguyen Thi Tuyet Nhung 1

INTRODUCTION

Iris Company is a company dealing in green products in Vietnam. Iris is a company with more than 100 stores spread across provinces from North to South. Each store has its own database to store that store-specific data and transactions. Every month, the stores will check and summarize the sales data of that month, then send it to the company's board of directors. As such, it will take a lot of time for management to aggregate all data from all stores across all regions. Not to mention the manual calculation is very prone to errors, confusion leading to time loss and inefficiency. As we all know, nowadays, in the busy life of people, spending time out shopping is a luxury. That's why people prefer to shop online. With online shopping, they don't need to worry about weather conditions, traffic safety, etc. Many consumers are gradually turning to online shopping to save time. Therefore, building an e-commerce website is extremely reasonable, helping to develop in business. The proposed solution to help Iris company is to apply cloud computing to the company's business, build its own e-commerce website and deploy it on a cloud server. In Assignment 1, I implemented information on the fundamentals of Cloud Computing and its architecture, and evaluated its deployment models, service models, and technology drivers. Cloud computing and validation of their use. Figure 1 Network Architecture Diagram In this Assignment 2 post, I will configure the company's cloud computing platform routing, using the AWS platform. Then download and install Wordpress. Next, I will proceed

Perfomed Student: Nguyen Thi Tuyet Nhung 3

CHAPTER 1. DEVELOP CLOUD COMPUTING SOLUTIONS USING

SERVICE PROVIDER’S FRAMEWORKS AND OPEN SOURCE TOOLS.

(LO3)

Configure a Cloud Computing platform with a cloud service provider’s

framework. (P5)

Amazon EC2 are cloud servers powered by AWS that provide virtualized computing resources that can scale, process, develop, and deploy applications faster, reducing the need for investment. invest in hardware. Amazon EC2 can be used to initialize one or more virtual servers, and the costs to be paid are also easily known through the information of the resources we use. To create an Amazon EC2 virtual machine on AWS, follow the steps in the following order: Step 1: Register and log in to the AWS system Find and open the "https://aws.amazon.com/" link to access the AWS interface in the browser. Next, on the interface click the "Create an AWS Account" button to create an account. Figure 2 Create an AWS Account The account registration interface will appear, the system requires the user to enter the fields and steps as prescribed to complete the user account registration.

Perfomed Student: Nguyen Thi Tuyet Nhung 4 When you sign up for an AWS account, the system automatically registers all services in AWS, including Amazon EC2. Users only need to pay for the services they use. Figure 3 Account registration interface After successfully registering an AWS account, next log in to the AWS system to use the services they provide. Figure 4 Login interface

Perfomed Student: Nguyen Thi Tuyet Nhung 6 After selecting "VPC and more", it will create 4 subnets, respectively there will be 3 routing tables, including a Private Routing table for subnet access and a Public Routing table for outbound. Figure 7 Select VPC and create suitable VPC Next, choose to allow domain name resolution, here the system will automatically select it for us. I think I should choose to allow domain name resolution, to be able to access through the domain into the server. Then click "Create VPC" button to create VPC. Figure 8 Select VPC and create suitable VPC After clicking create VPC, it will appear related items that we have successfully cre- ated, including IPv6, subnets, internet gateways, routing tables, etc. Then we can click the "View VPC" button to see our VPC.

Perfomed Student: Nguyen Thi Tuyet Nhung 7 Figure 9 Successful VPC creation Step 4: EC2 Launch instance Move your mouse to the AWS Services tab in the upper left corner. Here you will see all AWS services categorized by region. Select EC2 in Computer Services. Figure 10 Select EC2 in Computer Services

Perfomed Student: Nguyen Thi Tuyet Nhung 9 Figure 12 EC2 Free-tier Ubuntu instance Next, create key pair. Here I name my key pair "my key-pair". To remotely access our virtual machine, we will choose to access via RSA encryption and use PuTTy. Then press the "Create key pair" button. Figure 13 Create SSH Key Pair

Perfomed Student: Nguyen Thi Tuyet Nhung 10 To be able to access it from the outside, we will use public IP. For public IP, enable "Auto-assign public IP" to generate IPv4 and "Auto-assign IPv6 IP" to generate IPv6 access. Figure 14 EC2 Enable IP Auto-assign In addition to remote access, here I have created a web server, which can access the regular web and the secure web. Figure 15 EC2 add HTTP and HTTPS rules After you have installed all the parameters you need, click "Launch instance". And on the screen will appear the message "Success". Click "View all instances" to be able to see your virtual machine.