How to change port no 80 of httpd webserver

0 votes

Hi everyone,

I have httpd server running in my system. It uses port 80 by default. But I want to change this port 80 to 82. How can I do that?

Apr 21, 2020 in Linux Administration by akhtar
• 38,260 points
2,360 views

1 answer to this question.

0 votes

Hi@akhtar,

You can change port no of httpd webserver. For that you have to set it in httpd.conf file. Follow the below given steps.

  • Open /etc/httpd/conf/httpd.conf file.

  • Search Listen 80 and replace it with Listen 82

  • Close the file and run the below command.

$ semanage port -a -t http_port_t -p tcp 82
answered Apr 21, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
1 answer

How to change permissions of folder and files in folder?

The chmod command is used to set/change the permissions ...READ MORE

answered Feb 1, 2019 in Linux Administration by Omkar
• 69,230 points
1,954 views
0 votes
2 answers

How to change IP address of an Ubuntu VM?

The easiest method is through network manager: 1- ...READ MORE

answered Aug 25, 2020 in Linux Administration by Pistle
• 300 points
14,336 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
5,414 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,100 points
2,660 views
0 votes
1 answer

How to change the owner of any folder in Linux system?

Hi@akhtar, Linux system has one command named chown. This ...READ MORE

answered Aug 14, 2020 in Linux Administration by MD
• 95,460 points
1,206 views
0 votes
1 answer

How to change the group of a folder in Linux system?

Hi@akhtar, You can use chgrp command in your ...READ MORE

answered Aug 14, 2020 in Linux Administration by MD
• 95,460 points
1,322 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