Ankit Cse
3 min readMar 8, 2021

--

Integerating AWS RDS with WordPress 😊😊😊

Step1 Creating AWS EC2 instance

Launching the instance ….

Now we will be configuring our instance with some softwares

  • Update the repos
dnf update -y
  • Install the fedora rpm for further softwares that are not available in our repos
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

We can download the vim editor or we can use vi editor . Here, I am installing vim editor for better user experience

dnf install vim -y

We can download wget software to download any software or packages from internet

dnf install wget -y

Step 2 Configuring the instance with Apache Server

* Installing the httpd software
dnf install httpd -y
* Starting the services
systemctl start httpd

Step 3 Installing the PHP Software

dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module install php:remi-7.4
dnf install php-mysqlnd

Step4 Configuring MYSQL Database

* Installing mysql software 
dnf install mysql -y
* Connecting to RDS
mysql -h *hostname provided by RDS* -u *usernamewhilecreatingRDS* -p

Now how to Setup your database on AWS

Create a database just like I have created …

Step 5 Configuring WordPress

wget http://wordpress.org/latest.tar.gz
tar -xvzf latest.tar.gz -C /var/www/html

In this file you have to enter your database name ,username , password and database host i.e your endpoint of AWS database

As Soon as I browse my Instance IP I will get this :-

Task is Completed !!! πŸ”₯πŸ”₯πŸ”₯

That’s All Signing off !!!

Stay Tuned to me !!! For more exciting blogs like this !!!

Feel Free to Connect with me on Linkedin 🀝🀝🀝

--

--