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,230 points
1,016 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,440 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,170 points
2,577 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,090 points
2,954 views
+1 vote
2 answers

How to create an EC2 instance in AWS Console?

Here is a step by step guide ...READ MORE

answered Feb 11, 2019 in AWS by Shubendu
1,693 views
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 24, 2020 in AWS by Ashish
1,905 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 11, 2020 in AWS by MD
• 95,440 points
2,126 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP