Deploy A Word press Server on EC2 Instance

Ghazanfar Ali
Aug 30, 2023

--

Diagram:

This project will help you to understand the concepts of EC2 instance, user data scripts, Mysql, Security groups, linux and webserver.

Lets start!

We will create ubuntu instance (t2.micro) with bash script which will install the wordpress server on our instance:

Select Ubuntu AMI:

Select instance type t2.micro as it is free:

Create new key pairs for ssh access to your instance:

In network setting create new security group and allow port 22 and port 80 access for webserver:

Now time to put bash script in Advance→ User data section, this bash script will install and enable wordpress server on our instance at the time of creation:

Once instance is launched take it ssh and check wordpress service status:

Also check on browser with instance public ip:

We have successfully wordpress server on our EC2 instance.

--

--

Ghazanfar Ali
Ghazanfar Ali

Written by Ghazanfar Ali

I write technical blogs on DevOps and AWS, Azure and GCP

No responses yet