Task Description :

- Create an AWS EC2 Instance

Alphy Prakash
3 min readJun 17, 2021

-Configure the Instance with apache webserver

-Download PHP Application name “WordPress”

- As WordPress stores data at the backend in MySQL Database server. Therefore, you need to setup a MySQL server using AWS RDS service using Free Tier.

-Provide the endpoint/connection string to the WordPress application to make it work.

1. Creation of EC2 Instance :-

2. Configure Web-Server

# yum install httpd vim -y

# systemctl start httpd

# systemctl enable httpd

3. database creation

4. Install PHP7.4 in RHEL 8

EPEL and REMI repositories are the main requirements for this installation

# yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest8.noarch.rpm

# yum -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

Enable the Module Stream for PHP 7.4 on RHEL 8

# dnf module install php:remi-7.4

Install mysqlnd Library

# dnf install php-mysqlnd

Now, we have to install mysql in EC2 Instance and create one database # yum install mysql -y

--

--