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.
Pre-Requirements:
a. AWS Account
b. Stable Internet Connectivity
c. Little knowledge about EC2
Lets dive into it directly……….
Step-1: Launch a Aws Ec2 instance and login into it.
>> We are using Amazon Linux Ami
>> Two instances are needed 1-for frontend and 2nd for Backend
>> Frontend must have a connectivity and backend must be in same subnet as Frontend
Step-2:Installing the httpd software as we will be using it as a Webserver.
# yum install httpd -y

Step-3: Installing php supported for v5.6 of mysql
>> As every version of php is not supports every verison of mysql
# amazon linux extras install php7.4

Step-4: Now installing wordpress
>> 1st download wordpress using wget command and extract it
>> copy the extracted the wordpress package into httpd document root
which is /var/www/html
>>Now changing the permission of the apache self-created user to run mysql


Step-5: Starting the httpd service
# systemctl enable httpd
# systemctl start httpd

Step-6: Now go to Wordpress Instance public IP via any browser


That’s it we just have to follow the 6 basic steps and we have launched as well configured the Wordpress which inturn is connected to mysql
Hope you guys enjoyed and learned from it also
To know more about me —
Linkedin: https://www.linkedin.com/in/rishabh-465a85185/
github:https://github.com/Rishbah-76