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,170 points
288 views

1 answer to this question.

0 votes

Hi@akhtar,

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,180 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
1,213 views
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,120 points
1,429 views
+1 vote
2 answers
0 votes
1 answer

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

Check this out! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html Also, you can create your ...READ MORE

answered Sep 23, 2020 in AWS by Ashish
205 views
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 10, 2020 in AWS by MD
• 95,180 points
230 views