⭐ Deploying Amazon RDS with Wordpress⭐
✴️ In this blog I will be deploying Amazon RDS ( Relational Database Service ) with Wordpress on AWS Cloud.
✔️ Why RDS ?
Amazon Relational Database Service (RDS) is a distributed relational database service by Amazon Web Services.
It is a web service running "in the cloud" designed to simplify the setup, operation, and scaling of a relational database for use in applications. It frees you to focus on your applications so you can give them the fast performance, high availability, security and compatibility they need.
✔️ Why WORDPRESS ?
WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.
💫 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 we need to Setup a MySQL server using AWS RDS service using Free tier.
🔅 Provide the endpoint/ connection string to PHP application to make it work.
— — — — — — — — — — — — — —
Let’s begin 😄
👉Launch an AWS EC2 instance….
🔅 Here , I am using an Amazon Linux.
👉 Configure the instance mysql database and apache webserver.
🔅 Install MySQL:
🔅Install httpd:
👉 Dowload php application name wordpress…..
🔅 Install PHP:
🔅Install Wordpress:
🔅Extract Wordpress:
🔅 Move WordPress folder to root directory /var/www/html
👉Start httpd service:
👉As wordpress stores data at the backend in MySQL database server. Therefore we need to Setup a MySQL server using AWS RDS service using Free tier….
Credentials:
🔅Do Not give the public access to the RDS instance, so only the EC2 can connect the Database server
In Aditional Configuration:
🔅Successfully launched the Database👇😄✌️✌️
👉 Create MySQL database:
We can see Database ‘mydb’ is empty☝️
👉Now on browser
type :- http://<public_ip >/Wordpress
👉Add the database information and in Database Host put Endpoint/connection string….
🔅You can get Endpoint from the Connectivity & Security details of RDS:
👉 Here, we can see, it is not able to create wp-config.php file☝️
So, we have to create it manally…
🔅Now, click on Run the installation…
If you get the below page👇 that means you have successfully configured WordPress.
Now enter your details and login into WordPress….
Login:
Now you can create blogs and publish it.
👉 And now you can see WordPress stores information in mydb database:
💫 Finally our Task is Successfully Completed!!✌️😄
Keep Learning!!Keep Sharing!!