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,170 points
149 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,060 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 Jan 31, 2019 in Linux Administration by Omkar
• 69,090 points
210 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 24, 2020 in Linux Administration by Pistle
• 300 points
2,046 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
2,147 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
1,040 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 13, 2020 in Linux Administration by MD
• 95,060 points
153 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,060 points
112 views