ARTH β Task 18 π¨π»βπ»
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
STEP:2: CONFIGURE INSTANCE WITH APACHE WEB SERVER
CMD: yum install httpd -y
To start httpd:
CMD: systemctl start httpdTo 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
copy wordpress file to webserver6. CMD: cp -rf wordpress/* /var/www/html/
STEP:4: SET MYSQL SERVER USING AWS RDS SERVER
STEP:5: PROVIDE THE ENDPOINT STRING TO WORDPRESS APPLICATION TO MAKE IT WORK
connect the database :
CMD: mysql -h <endpoint> -u admin -P
* Go to '/var/www/html/wordpress'
* update 'wp-config-sample.php'
-> Now, go to web : <public_ip>/wordpress