Integration Of WordPress with Amazon RDS on AWS

Source : Owner

What Is AWS ???

Source : Owner

What is AWS-RDS ???

Source : Owner
  • It makes it easy to set-up and operate a relational database in the cloud. It provides a very cost-effective way to use industry’s leading RDBMS software as a managed service.
  • Because of this web service from amazon AWS, You do not have to buy any server or install any database software in it.
  • You just have subscribe to the AWS RDS web service and start using the RDBMS features after some initial configuration involving memory and CPU capacity allocation etc.

What is WordPress ???

Source : Owner
  • WordPress is the most popular blogging system on the web and allows updating, customizing and managing the website from its back-end CMS and components.
  • WordPress is an excellent website platform for a variety of websites. From blogging to e-commerce to business and portfolio websites, itis a versatile CMS.
  • Designed with usability and flexibility in mind, it is a great solution for both large and small websites.

Our Task Scenario Step By Step :

  • Launch an EC2 instance For Deploying WordPress
  • Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.
  • Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment.
  • For launching EC2 instance you can refer below mentioned link:

To connect from the Amazon EC2 console :

  • Open the Amazon EC2 console
  • In the left navigation pane, choose Instances and select the instance to which to connect
  • Choose Connect
  • Install “ httpd ” software which will be useful for configuring instance as webserver

Download WordPress code from the Internet and Extract it —

The following command will download the WordPress from Internet.

curl --output wordpress.tar.gz
tar xf wordpress.tar.gz// The Linux ‘tar’ stands for tape archive, is used to create Archive and extract the Archive files. tar command in Linux is one of the important command which provides archiving functionality in Linux.
cp -r source_directory destination_directory
cp -r wordpress /var/www/html
systemctl start httpd
// To start Apache web server

Create RDS database For WordPress —

To create a MySQL DB instance :

1)Sign in to the AWS Management Console and open the Amazon RDS console at
2) In the upper-right corner of the AWS Management Console, choose the AWS Region where you want to create the DB instance.
3) In the navigation pane, choose Databases.
4) Choose Create database.
5) On the Create database page, shown following, make sure that the Standard Create option is chosen, and then choose MySQL.

DB instance identifier — Mydb
Master username — Give username
Auto-generate a password — Disable the option
Master password — Choose a password
Confirm password — Retype the password



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store