ARTH β€” Task 18 πŸ‘¨πŸ»β€πŸ’»

Saranya. S
4 min readApr 29, 2021

--

Task DescriptionπŸ“„

πŸ”… Create an AWS EC2 instance

πŸ”… Configure the instance with Apache Webserver.

πŸ”… Download PHP application name β€œWordPress”.

πŸ”… WordPress stores data at the backend in the MySQL Database Server. Therefore, you need to set up a MySQL server using AWS RDS service using Free Tier.

πŸ”… Provide the endpoint/connection string to the WordPress application to make it work.

TASK BEGINS!!!

STEP:1: LAUNCH AN EC2 INSTANCE

launch ec2 instance
Finally,instance launched
To connect instance

STEP:2: CONFIGURE INSTANCE WITH APACHE WEB SERVER

CMD: yum install httpd -y
To start httpd:
CMD: systemctl start httpd
To check:
CMD: systemctl status httpd

STEP:3: INSTALL PHP APPLICATION NAME WordPress.

1. CMD: yum install php -mysqlnd -y
2. CMD: yum install mysql -y
3. CMD: amazon-linux-extras install php7.3
4. CMD: wget http://wordpress.org/latest.tar.gz
5. CMD: tar -xvzf latest.tar.gz
unzip the WordPress
copy wordpress file to webserver6. CMD: cp -rf wordpress/* /var/www/html/

STEP:4: SET MYSQL SERVER USING AWS RDS SERVER

create database
select β€œmysql”
Finally,DataBase Created

STEP:5: PROVIDE THE ENDPOINT STRING TO WORDPRESS APPLICATION TO MAKE IT WORK

connect the database :
CMD: mysql -h <endpoint> -u admin -P
ENDPOINT
* Go to '/var/www/html/wordpress'
* update 'wp-config-sample.php'
DB_HOST = ENDPOINT

-> Now, go to web : <public_ip>/wordpress

copy this in β€˜wp-config.php’ file
Install WordPress
Finally, done

TASK COMPLETED!!!

--

--

No responses yet