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,260 points
1,173 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,460 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,929 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,020 points
3,547 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
2,178 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
2,249 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,460 points
2,499 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