Blog
Many of us have our own websites (to showcase our skills or just to test our skills) or small hobby websites. In this article, I will show you how to host a website using AWS cloud platform.
Overview of WordPress :
WordPress is a free, open-source content management system (CMS) that allows you to create and manage websites easily.
Overview of AWS:
Amazon Web Services (AWS) is the leading cloud computing platform, providing a vast array of cloud services that enable businesses, developers, and governments to build, deploy, and scale applications efficiently and cost-effectively. In this blog post, we’ll explore what AWS is, its core services, key benefits, and why it has become the preferred choice for organizations worldwide.
Steps to Create an Amazon Web Services (AWS) Account:
The first step this article create AWS account-
After creating your account, log in to the AWS Management Console.
How to set up ec2 instance step by step:
After login your Amazon Web Services (AWS) account then launch the EC2 instance.
For your first instance, we recommend a low-cost, general-purpose instance type—t3.micro—and Amazon Machine Image (AMI)—Amazon Linux 2 AMI—which are both free-tier eligible. Open the Amazon EC2 dashboard and choose “Launch Instance” to create your virtual machine.
After that Connect to your instance:
- Select the EC2 instance that you created and choose “Connect.“
- Connected to your instance.
- Log in to your EC2 instance using SSH.
- Install the required dependencies. …
- Restart Apache or nginx ..
- Navigate to the Apache or nginx document root at /var/www/html. …
- Then configure Apache or nginx at /etc/nginx/conf.d/(filename. conf) this path
- Create a phpMyAdmin folder and extract the package
- Delete the phpMyAdmin-latest-all-languages.
Terminate your instance: When you delete your instance then select the instance, and choose Instance state, Terminate instance.
RDS for MariaDB set-up:
So, now set RDS for Maria DB
Open the AWS Management Console.
Create a MariaDB instance
- Select the Region in which you want to create the DB instance.
- In the Create database section, choose Create database.
- Now you have to select the database engine type.
- Then put the master user name.
- Select the default db instance class.
- Storage type – Select General Purpose SSD (gp2).
- You can set the 20 GiB allocated storage for your database. You can scale up to a maximum of 64 TB with Amazon RDS for MariaDB.
- Multi-AZ deployment -Using a Multi-AZ deployment will automatically provision and maintain a synchronous standby replica in a different Availability Zone. Note that you will have to pay for Multi-AZ deployment.
Elastic IP set-up:
- Click on the Elastic IPs.
- Click on the Allocated Elastic IP Address.
- Elastic IP Address setting – Default setting
- Click on the Allocate
- Select the IP-Address -> Click on the Action, then select the Associate Elastic IP Address.
- Associate Elastic IP Address -> Choose an instance and Select the instance where you want to allocate the IP Address
- Click on the Associate Button
Set up a Domain:
Register a Domain: Register a domain through a registrar like Route 53, GoDaddy, or Namecheap.
Point the Domain to Your Instance: Update your domain’s DNS settings to point to your EC2 instance’s public IP address.
Conclusion:
I am using Amazon EC2 to launch and deploy a WordPress instance.
Amazon EC2 is a great choice to develop, build, and deploy a variety of applications like WordPress, websites, and blog platforms.