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 in Linux Administration by akhtar
• 10,580 points
22 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 by MD
• 23,050 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,060 points
75 views
0 votes
1 answer

How to change IP address of an Ubuntu VM?

Go to your Linux terminal and execute ...READ MORE

answered Nov 20, 2019 in Linux Administration by Kalgi
• 51,850 points
239 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
368 views
0 votes
1 answer
0 votes
1 answer
0 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
• 57,530 points
538 views
0 votes
1 answer

How to install httpd web server in Linux?

Hi@akhtar, To install httpd web server in CentOS/RHEL ...READ MORE

answered Apr 21 in Linux Administration by MD
• 23,050 points
22 views
0 votes
1 answer

How to install python-poster in RedHat?

Hi@akhtar, To install python-poster in RedHat/CentOs, you can ...READ MORE

answered Feb 11 in Linux Administration by MD
• 23,050 points
74 views