ARTH โ Task 18 ๐จ๐ปโ๐ป
Task Description๐
๐ Create an AWS EC2 instance
๐ 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
Hereโs is the series of steps I followed to complete this task:
Created an Amazon RDS Database with following configurations:
Database Creation Method: Standard create
Engine Option: MySQL
MySQL Version: 5.7.31
Templates: Free Tier
Database instance Identifier: wordpressdb
Password also set for the Database
Granting public access and creating a new security group.
region : ap-south-1a
Rest all setting I left in default and then clicked on Create Database.
It took a while to create a database till then I launched an AWS EC2 instance with this properties:
AMI : Red Hat Enterprise Linux 8 (HVM), SSD Volume Type โ ami-0a9d27a9f4f5c0efc (64-bit x86)
Instance Type: t2.micro
subnet: ap-south-1a (same as of the database)
Name: Wordpress-instance
Security Group : All traffic from Anywhere
(Note: Those fields not mentioned are left in default value)
After Launching the Instance I copied the Security Group ID of the Instance and the pasted it in the Inbound rule of the scurity group of the Database which I created earlier:
After this inbound rule the database will have access only from the instance(s) which have this security group only
After launching the EC2 instance I did SSH with the private key which I had with me.
I configured the epel and remi repositories :
After the repositories configuration, installed the dnf-utils:
Ran the dnf update command to update the packages:
Installed the httpd package:
Installing other packages: mysql, php-mysqlnd, php:remi-7.4
Now I connected with the Amazon RDS Database with the end point URL and passing the credentials which I provided during the creation of the database:
Creating a database with name imran_db which will be used by the WordPress later. and exited with exit; command
Now I downloaded the wordpress in the /var/www/html/ folder via the below command:
Changing the permission of the folder:
Disabling the SELinux:
Now I copied the public IP of the Instance and then pasted in the browser with /wordpress at the end:
Eg: 192.168.43.43/wordpress
As this showed that means the Frontend part is all good and working
Now we have to set the backend part
Clicked Continue, then letโs go
In the below page, I filled the required fields and then clicked on Submit.
After clicking submit I landed on this page which means the connection to the database was successful !
The next steps:
The task is completed!!!
Thank you very much for giving this a read.
#vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeducation #arthbylw #php #apache #wordpress #aws #rds #mysql #rdbms