9 Easy Steps to Launch AWS EC2 instance from AWS Console to Install Apache2

Shivam Chauhan July 1, 2022
9 Easy Steps to Launch AWS EC2 instance from AWS Console to Install Apache2

In the public cloud share ecosystem, AWS is one dominating cloud platform service that serves businesses with scalable, reliable and low cost infrastructure. With a varied suite of services offered under the AWS environment, one of the most common services is Amazon EC2 (Elastic Compute). 

Amazon EC2 specializes in providing scalable cloud computing capacity in the AWS cloud server. With the help of Amazon EC2, you can develop and launch applications faster, without spending extra cents on hardware upfront. You can deploy virtual servers, manage cookies from immersive dashboards and configure various security and networking protocols all under one roof. 

If you have decided to launch your first AWS EC2, here’s a quick tutorial that shows you how to deploy an AWS EC2 instance from AWS New Console and SSH into it to install Apache 2. 

But first, let’s take a brief look at what we are dealing with;

What is Amazon EC2 Instance?

An Amazon EC2 instance acts as a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure. EC2 makes development easier for developers by simplifying the process of scaling up and down and offering resizable computing capacity.  

Explore our services

How to Launch AWS EC2 Instance from AWS Console?

Prerequisites: 

To create EC2 you need to have an AWS account, if not , you can create an account on AWS right now.

1. Login into your AWS Account and open EC2-Dashboard

Note: Be sure to select the AWS Region that you want to launch the instance in, for me it is (N. Virginia) us-east-1.

Now, when you are in the EC2 Dashboard you see there is 0 running instances, for creating a new instance click on “Launch Instance”

Login into your AWS Account and open EC2-Dashboard

2. Type name of your desirable instance

Type name of your desirable instance

3. Choose AMI

Here you see multiple AMI options for selection. AMI stands for Amazon Machine Image, which is basically the software and the operating system that you want to launch on the server, in my case I chose Ubuntu 20.04.

Choose AMI

4. Select instance type 

Here you can select the type of machine, number of vCPUs and memory that you want to have. Select the free tier eligible option and move to next step (create new key pair)

Select instance type 

5. Create new key pair 

This key pair will allow you to access using SSH into the machine you just created. Create the key pair and download it, make sure to keep it safe as you will not be able to download it again.

Create new key pair 

6. Configure network setting

Here you change vpc, subnet and security group and other configuration. I will leave this to default.

Note: Select Allow HTTP traffic from the internet option for allow port 80.

Configure network setting

7. Configure storage

Select the amount of storage you want your instance to have, for free tier you can choose up to 30 GB of EBS. I’ll leave this to default and Click on “Launch Instance”

Configure storage

8. Access your instance 

Firstly, select instance then click on connect button.

Access your instance 

Select SSH client

Select SSH client

Next open your  terminal and use the below command to access the server.

  • chmod 400 pem Filename
  • ssh -i “pem file path” ubuntu@instancePublicIP

9. Install Apache

You can now install Apache, so run below command 

  • sudo apt update
  • Sudo apt install apache2 

To start the service and make sure it remains enable, run below commands

  • sudo systemctl start apache2
  • sudo systemctl enable apache2

Now, hit the browser with your instance’s public IP and you will see the default Apache page, which means that Apache is successfully installed.

Apache is successfully installed

Wrapping Up

Now that you have become familiar with AWS EC2 and how to launch it successfully, it’s time to finally run it and see changes. While this tutorial seems easy, before launching a production environment, try answering the following questions; 

  • What instance type best fits my requirements? 
  • Will I be able to remotely manage a fleet of EC2 instances in my hybrid environment?
  • What purchasing options should I go for?

When you have answers to these questions, you will be crystal clear about how you are going to run the instance properly. I hope this tutorial helped you. For better technical guidance, you can reach out to a reliable cloud professional service company like Appinventiv that supports your product at every step of the development. Consult with the experts to get started.

THE AUTHOR
Shivam Chauhan
Prev PostNext Post
Let's Build Digital Excellence Together
Let's Build Digital Excellence Together
Read more blogs
The cost to build cloud-based digital signage software

How Much Does it Cost to Build a Cloud Based Digital Signage Software?

Imagine you are an entrepreneur with a vision: a world where digital displays are everywhere, delivering timely information, immersive advertising, and dynamic content in places as diverse as airports, retail stores, and corporate offices. You have also identified the growing demand for digital signage—something seen in its $26.5 billion market size—but creating robust cloud-based enterprise…

Sudeep Srivastava
Cloud manufacturing software development

Cloud Manufacturing Software - Benefits, Types, Development Process and Cost Analysis

Cloud computing is set to become a bigger part of the manufacturing industry's future as it continues to embrace digital transformation. With advancements in manufacturing software, cloud-based solutions are here to stay and only grow with time. The potential of ERP can be realized with the help of cloud manufacturing software, which eliminates the need…

Sudeep Srivastava
cloud computing in oil and gas industry

Cloud Computing in Oil and Gas Industry - Identifying Business Opportunities and Challenges

In an industry where the pressure of data is as intense as the pressure in the deep sea, oil and gas companies grapple with managing enormous volumes of information, streamlining operations, and controlling costs. Traditional systems often buckle under the weight of this data deluge, leading to fragmented processes, operational inefficiencies, and hefty capital expenditures…

Sudeep Srivastava
Mobile App Consulting Company on Clutch Most trusted Mobile App Consulting Company on Clutch
appinventiv India
INDIA

B-25, Sector 58,
Noida- 201301,
Delhi - NCR, India

appinventiv USA
USA

79, Madison Ave
Manhattan, NY 10001,
USA

appinventiv Australia
Australia

Appinventiv Australia,
East Brisbane
QLD 4169, Australia

appinventiv London UK
UK

3rd Floor, 86-90
Paul Street EC2A 4NE
London, UK

appinventiv UAE
UAE

Tiger Al Yarmook Building,
13th floor B-block
Al Nahda St - Sharjah

appinventiv Canada
CANADA

Suite 3810, Bankers Hall West,
888 - 3rd Street Sw
Calgary Alberta