Integration of Webhosting WordPress With AWS RDS | EC2.

Kanishka Shakya
5 min readMay 23, 2021

What is AWS??

Amazon Web Services (AWS) is a subsidiary of Amazon providing on-demand cloud computing platforms and APIs to individuals, companies, and governments, on a metered pay-as-you-go basis. These cloud computing web services provide a variety of basic abstract technical infrastructure and distributed computing building blocks and tools. One of these services is Amazon Elastic Compute Cloud (EC2), which allows users to have at their disposal a virtual cluster of computers, available all the time, through the Internet. AWS’s version of virtual computers emulates most of the attributes of a real computer, including hardware central processing units (CPUs) and graphics processing units (GPUs) for processing; local/RAM memory; hard-disk/SSD storage; a choice of operating systems; networking; and pre-loaded application software such as web servers, databases, and customer relationship management (CRM).

What is Wordpress??

WordPress (WP, WordPress.org) is a free and open-source content management system (CMS) written in PHP[4] and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes. WordPress was originally created as a blog-publishing system but has evolved to support other web content types including more traditional mailing lists and forums, media galleries, membership sites, learning management systems (LMS) and online stores. WordPress is used by 41.4% of the top 10 million websites as of May 2021, WordPress is one of the most popular content management system solutions in use. WordPress has also been used for other application domains, such as pervasive display systems (PDS).

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, 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.

Step 1: Creating 2 security groups one for the 1 for the EC2 and one for the RDS

as the data is very important we only want the ec2 instance to connect to our database server. Therefore, we add a custom SG which we created up W_P for the RDS server.

Step 2: Launch an EC2 instance & using Amazon Linux

Step 3: Launch an RDS & using MySQL Database

Successfully launched the database.

create a subnet groups…

Step 4: Create Virtual Private Cloud

Step 5: Now, Create an Instance

create a key…

create security groups…

Step 6: Inside the Instance installed httpd

Step 7: Installed zipped folder for WordPress and also install wordpress

extracting files in archive also…

verify and seeing this …

Now, Restart the httpd server…

Step 8: Now, Configure the WordPress website and database server on the EC2 public IP

Successfully installed WordPress and created the user…

Login Now

⭐Keep Learning !!

Keep Sharing!!!⭐⭐

--

--

Kanishka Shakya

Aviatrix Certified Engineer | DevOps | Python | Big Data | RHCSA 8 | AWS-CSA | AWS-DEVELOPER | Ansible | Docker | CKA & CKAD | GIT & GITHUB |