0% found this document useful (0 votes)
2 views

how to install Apache Web Server

This document provides a step-by-step guide on how to install the Apache Web Server on an AWS EC2 instance. It includes instructions for signing into the AWS console, launching an EC2 instance, connecting to both Windows and Linux instances, and executing the necessary commands to install and configure Apache. The process concludes with verifying the installation by accessing the server via a web browser.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

how to install Apache Web Server

This document provides a step-by-step guide on how to install the Apache Web Server on an AWS EC2 instance. It includes instructions for signing into the AWS console, launching an EC2 instance, connecting to both Windows and Linux instances, and executing the necessary commands to install and configure Apache. The process concludes with verifying the installation by accessing the server via a web browser.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

How to install Apache Web Server

Step 1: Sign in to AWS Console


i. Go to the AWS Management Console (https://aws.amazon.com/)
ii. Sign in to your AWS account.

Step 2: Launch an
EC2 Instance
i. Navigate to the EC2 instance.
ii. Click on the "Launch Instance" button.
iii. To launch an instance follow these general steps shown below:
Fill Info (Name and tags)

iv. Choose an Amazon Machine Image (AMI) that corresponds to the


Windows Server version we want to use.

v. Choose instance type.


vi. Create a Key pair by clicking on create key pair.
vii. Now click on launch instance.
viii.

Click security - > Security group.


ix. Click on edit inbound rules.
x. Click on add rule.

xi. Edit port number as 8080 and set IP address as anywhere.


Step 3: Connect to the Windows EC2 Instance.
i. Once your instance is running, select the instance in the EC2
dashboard.
ii. Click on the "Connect" button.

How to connect Linux Instance

Step 1:
i. Open PuTTy application.
ii.Copy public IPv4 address from the instance details and paste it under the
Host Name in PuTTY.

iii. Click on SSH  Auth  Credentials Browse.


iv. Upload the private key file with .ppk extension.

v. Click on accept.
vi. Connected to Linux server. It is now successfully up and running on AWS
cloud.
Installation of Apache web server

i. Write Command : “Sudo su”-> Now we are root user


ii. Write Command : “yum install update -y”

iii.yum install httpd : this command install all the packages.


iv. Enter y: Now all the packages are installed.
v. Start the service .
Command : systemctl start httpd
Now, Check status of the service .
Command : systemctl status httpd

vi. Upgrade configuration file for port -8080


Command : “vim /etc/httpd/conf/httpd.conf”
vii. Press I(for insert)->Update listen 80 to listen 8080(because port range of
custom TCP is 8080) -> enter command “:wq”. Now your file is saved.

viii. To stop server write command : “systemctl stop httpd”, to start server write
command :”systemctl start httpd”.

ix. Now enter the IP address of our linux instance on web browser and add
“:8080” to it.
Conclusion : Instance is created and apache
web server is installed.

You might also like