0% found this document useful (0 votes)
3 views6 pages

Install Apach Web Server Using Cloud

The document outlines steps to set up an EC2 instance and install the Apache HTTP server on Amazon Linux 2. It includes commands for updating the system and creating a simple HTML file to serve as a webpage. The final output is a basic web page greeting users for the New Year 2022.

Uploaded by

Sourav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

Install Apach Web Server Using Cloud

The document outlines steps to set up an EC2 instance and install the Apache HTTP server on Amazon Linux 2. It includes commands for updating the system and creating a simple HTML file to serve as a webpage. The final output is a basic web page greeting users for the New Year 2022.

Uploaded by

Sourav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Accessing HTTP

1. 1st install a EC2


2. 2nd
3.

Now access the --

login as: ec2-user

Authenticating with public key "imported-openssh-key"

Passphrase for key "imported-openssh-key":

__| __|_ )

_| ( / Amazon Linux 2 AMI

___|\___|___|

https://aws.amazon.com/amazon-linux-2/

6 package(s) needed for security, out of 16 available


Run "sudo yum update" to apply all updates.

[ec2-user@ip-172-31-87-84 ~]$

[ec2-user@ip-172-31-87-84 ~]$ sudo -i

[root@ip-172-31-87-84 ~]#

[root@ip-172-31-87-84 ~]# yum update -y

[root@ip-172-31-87-84 ~]# yum update -y

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd

No packages marked for update

[root@ip-172-31-87-84 ~]#

[root@ip-172-31-87-84 ~]# yum install httpd

Is this ok [y/d/N]: yes

[root@ip-172-31-87-84 ~]#

[root@ip-172-31-87-84 ~]# pwd

/root

[root@ip-172-31-87-84 ~]#

[root@ip-172-31-87-84 ~]# cd /var/www/html/

[root@ip-172-31-87-84 html]#

[root@ip-172-31-87-84 html]# pwd

/var/www/html

[root@ip-172-31-87-84 html]# touch index.html


[root@ip-172-31-87-84 html]#

[root@ip-172-31-87-84 html]# cat > index.html

Hi I am aws .

Wishing a Happy New year 2022.

^C

[root@ip-172-31-87-84 html]# cat index.html

Hi I am aws .

Wishing a Happy New year 2022.

Now access web ---

You might also like