Integration Of WordPress With Amazon RDS ..❕

Dileepkumar
3 min readJan 26, 2021

WordPress

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database.

Amazon RDS (Amazon Relational Database Service)

Amazon Relational Database Service 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.

Lets Start..,

🔺 Lets Create a AWS Ec2 Instance

🔺 Now lets configure the Instances with Apache Webserver with WordPress.

# yum install httpd -y

Installing WordPress

# wget https://wordpress.org/latest.tar.gz
# tar -xzf latest.tar.gz

Move wordpress folder to /var/www/html

# mv wordpress /var/www/html

Edit httpd configuration file # /etc/httpd/conf/httpd.conf

AllowOverride ALL

start Httpd Service

# systemctl start httpd

🔺 We know WordPress Internally need a Database to store Data, So lets create a mysql DataBase using AWS RDS service.

Mysql DataBase Created

To access mysql Database we need mysql software to be preinstalled, so lets install mysql.

# yum install mysql -y

Now lets craete a database

Lets install php bcoz WordPress is built on PHP

# amazon-linux-extras install php7.2 -y

Now lets open it on browser

http://<public_ip>/wordpress/

Now refresh the page and follow the instructions.. Page will be Ready

Finally Task Completed..

Thanks for Reading !!

--

--