Integrated WordPress with AWS RDS On AWS Cloud

What Is RDS?

Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while automating time-consuming administration tasks such as hardware provisioning, database setup, patching, and backups.

Amazon RDS is available on several database instance types — optimized for memory, performance, or I/O — and provides you with six familiar database engines to choose from, including Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle Database, and SQL Server.

What Is WordPress?

WordPress is open-source software, WordPress was primarily a tool to create a blog, rather than more traditional websites. That hasn’t been true for a long time, though. Nowadays, thanks to changes to the core code, as well as WordPress’ massive ecosystem of plugins and themes, you can create any type of website with WordPress.

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, you need to setup a
MySQL server using AWS RDS service using Free Tier.
🔅 Provide the endpoint/connection string to the
WordPress application to make it work.

1. Launch an AWS EC2 instance of Redhat to launch WordPress

3. Install httpd using command :

4. Install MySQL using command :

5. Since WordPress uses the latest version of PHP i.e PHP-7.4. Install it by the following commands in the AWS instance :

sudo yum install amazon-linux-extras -y

amazon-linux-extras enable php7.4

6. Download WordPress code from the Internet and Extract it into /var/www/html folder and unzip it

Step 2: Create an RDS database For WordPress

  • Open Amazon RDS and click on Create Database
  • Select MySQL as the database type
  • In the Templates section, choose the Free tier.
  • DB instance identifierdefault
  • Master usernameadmin
  • Master password — Choose a password.
  • Confirm password — Confirm the password
  • Availability Zone — ap-south-b
  • Initial Database Name — database-1

Database Created Successfully

STEP 3: Connecting to the database and connecting to WordPress

And create the user database

2. Configure The wp-conf.php file by providing Database Name, User Name, Password, Endpoint Url

3. Connect to WordPress

And after installing WordPress and login you will see your website Live!! Running like this ;

Thank you !.. if you like this article then please share, comment, and like

!! Keep Learning & Growing !!




DevOps, Cloud, MlOps, Linux

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What is an algorithm ? (Specially in CS and IT Fields)

Reference GeekForGeeks

α / β male

[Update] SmartDrop Campaign with QuarkChain

Golang + Cpp + gRPC in kubernetes

Basic OS X configuration to code interfaces

Kentico And Azure Integration Possibilities — Part 3 — Application Insights

Power BI: How I Started Using Python To Automate Tasks

Does code style matter?

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
Deepak Parihari

Deepak Parihari

DevOps, Cloud, MlOps, Linux

More from Medium

Configure MFA for AWS CLI

Setting Up EC2 Instance Using AWS CLI

Create a Secure AWS Account

Create a Secure AWS Account

AWS Transfer Family For File Transfers

AWS Transfer Family with AWS Managed MS AD