✍HOW TO LAUNCH A WORDPRESS SITE OVER AN AWS CLOUD BY USING AMAZON RDS :

Priya Soni
10 min readApr 27, 2021

--

HELLO EVERYONE ✌✌,

This article will help you to learn, How we can launch a wordpress site over an AWS cloud by using Amazon RDS.

Next we gonna see How to configure Amazon RDS from the scratch.

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

👉But before starting let’s understand some basic terms.

✍WHAT IS CLOUD COMPUTING ?

Cloud computing is a term referred to storing and accessing data over the internet. It doesn’t store any data on the hard disk of your personal computer. In cloud computing, you can access data from a remote server.

✍WHAT IS AWS CLOUD ?

Amazon web service is a platform that offers flexible, reliable, scalable, easy-to-use and cost-effective cloud computing solutions.

AWS is a comprehensive, easy to use computing platform offered Amazon. The platform is developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings.

IF YOU DON’T KNOW ANYTHING ABOUT AWS CLOUD THEN YOU CAN PREFER MY THESE BLOGS FOR BASIC KNOWLEDGE OF AWS WHICH IS GIVEN BELOW :

✍WHAT IS AMAZON RDS ?

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the AWS Cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks.

✍WHAT IS WORDPRESS ?

WordPress is web publishing software you can use to create a beautiful website or blog. It just may be the easiest and most flexible blogging and website content management system (CMS) for beginners.

SO WITHOUT WASTING YOUR TIME LET’S JUMP TO OUR PRACTICAL PART :

✍FIRST YOU HAVE TO LOGIN YOUR AWS ACCOUNT :

👉NEXT :

👉NEXT :

✍HOW TO LAUNCH RDS INSTANCE ON AWS CLOUD :

You have to Search for RDS on a Dashboard in AWS console.

👉NEXT :

Now Click on the Create Database button.

Now select the way, If you don’t want to do much by yourself go with the Easy Create option else go with the Standard Create option. Here I am using the standard create option.

Next, select the Database engine you want, Here I am using MySQL.

Now, they are asking for your Use Case, i.e How you want to use this instance, Here I am using the free tier for this blog.

But you can go with it according to your requirements. Along with it, it is also asking for a version of the Database Engine, Here I am going with default.

Next, it is asking for setting up Database name, username, and password for database set the following.

Select the instance according to your need, as I selected the Free tier before, And the free tier only supports db.t2.micro.

Next, It is asking for selecting storage, Select storage according to your need, I am going with default for this blog.

Here it provides the option to select availability, As I am using the free tier so it provides limited functionality. You can use this option if you are creating the setup for production or test/dev environment.

👉NEXT :

Now, In the connectivity tab, they are asking how you want to access this database, Here I am allowing Public access, and the setting remains as default.

Here, I am also done some additional configuration but if you don’t want then leave it as it is.

👉NEXT :

👉NEXT :

👉NEXT :

Now in the last, they are asking how you want to authenticate with this database, Here I am selecting password only. You can also access this database through IAM roles by adding roles to it, You can also use Kerberos security for this, But it is only supported in the production or test/dev environment.

Lastly, click on the Create database button to create your database instance.

Now you can see that your database instance is launched, It’s time to Launch a WordPress instance and connect it with the database.

✍HOW TO LAUNCH SETUP IN WORDPRESS OVER AN AWS CLOUD :

First, go to the AWS dashboard and click on ec2 service.

Here, you can see all the details of ec2 instances.

Now after landing on the ec2 dashboard click on the launch instance button.

Now after landing on the ec2 dashboard click on the launch instance button.

Next, select the Compute type as per your requirement, I am using t2.micro which is basic and free tier eligible.

Next, Configure the instance detail.

Next, add storage according to your need.

Add tags if you want to give tags to your ec2 instances.

Here, you have to create the security group. For now, I am using all traffic but it is not a good idea. Kindly choose wisely which port you want to let listen.

Lastly, review all the details and click on the launch button.

👉NEXT :

So, you have to select an existing key pair or create a new key pair.

Here, you can see our launching status.

Now you can see that our instance is launched and I named it RDS.

✍LET’S CONFIGURING THE WORDPRESS SITE :

Now Let’s start configuring WordPress on the launched instance. First, connect to the instance.

Next, after landing at the terminal, First switch the user to root.

# sudo su -

WordPress has a dependency on Apache webserver and MySQL, So let’s first install that in our system.

# yum install httpd -y# yum install mysql -y

Now go to document root of httpd server, i.e “/var/www/html/” and download the following file there. https://wordpress.org/latest.tar.gz .

Now untar the downloaded file. for untar use the “tar -xf latest.tar.gz” command.

# tar -xf latest.tar.gz

Now, Let’s start installing PHP, to install PHP on amazon Linux run the following command to get the installation command for PHP.

# amazon-linux-extras enable php7.4# yum install php-cli php-pdo php-fpm php-json php-mysqlnd

Now, let’s start the httpd service and make it permanent by enabling it.

# systemctl start httpd# systemctl enable httpd

👉NEXT :

We need our instance public ip address.

Now, Enter the IP address of your ec2-instance in your browser to open the wordpress configuration menu.

Next, It is asking for details like database name, username, password and database host.

Then you have to go to your amazon RDS.

Then you have to go to your database which you have launched and copy the Endpoint and paste in the wordpress where they ask for Database host.

Provide all the specific information here and submit it.

Next, you have to provide title, username, password and your valid email id.

👉NEXT :

After successful installation login to your instance using username and password you’ve created.

Here, you can see your wordpress dashboard.

Now you will see a dashboard which will ask you to customize your site, customize according to your need and your site will launched successfully.

Finally I have successfully completed my this task. Thank you Vimal Daga sir for giving me such a great task. Sir your mentorship is a God gift for me to enhance my skills and I am very blessed because you are my mentor.

So guys, In the upcoming days I am going to be publish a lots of blogs and articles on different different automation tools and other technologies, So definetely follow me on Medium as well as on linkedIn.

So, Here is my linkedIn profile if you have any queries definitely comment below or DM me on linkedIn.

SEE YOU IN THE NEXT BLOG WITH MORE AMAZING TASKS.

THANK YOU🙏🙏 GUYS FOR READING MY BLOG…

SIGNING OF FORM MY SIDE 👋👋

KEEP LEARNING🙇‍♂️📖🙇….

KEEP SHARING✌✌….

--

--