How to configure httpd webserver in EC2 instance

–1 vote

Hi Guys,

I have launched one EC2 instance in AWS. Now I want to configure httpd web server in EC2 instance to host my web pages. How can I do this task?

Jun 5, 2020 in AWS by akhtar
• 38,210 points

1 answer to this question.

0 votes


To configure httpd web server in EC2 instance, you can follow the below given steps.

  • Login to your EC2 instance.

  • Switch to root account.

$ sudo su - root 

  • Install httpd web server.
$ yum install httpd
  • Create one file inside /var/www/html folder.

  • Now start your service.

$ systemctl start httpd.
answered Jun 5, 2020 by MD
• 95,300 points

Related Questions In AWS

+1 vote
1 answer

How to auto-scale MYSQL database in AWS EC2 instance?

You could always use the Amazon RDS ...READ MORE

answered Aug 24, 2018 in AWS by Archana
• 4,150 points
0 votes
1 answer

How to Pass the VPC ID while creating the Ec2 instance in AWS using Python Boto3

import boto3 ec2 = boto3.resource('ec2') instance = ec2.create_instances( ...READ MORE

answered Jan 29, 2019 in AWS by Priyaj
• 58,140 points
+1 vote
2 answers
0 votes
1 answer

How to get alert of hard disk space in ec2 instance?

Check this out! Also, you can create your ...READ MORE

answered Sep 24, 2020 in AWS by Ashish
0 votes
1 answer
0 votes
1 answer

How to create an AWS EC2 Instance in the VPC with Boto3 module?

Hi@akhtar, You can use a network interface in ...READ MORE

answered Oct 11, 2020 in AWS by MD
• 95,300 points