We all know that as default the Apache HTTP Server will ping to port number 80 . What we have to do when a situation of changing this post number comes? Lets see some simple steps for this…
1. Assume that your new port number is 78
2. cp /etc/httpd/ports.conf /etc/httpd/ports.conf_backupgedit /etc/httpd/ports.conf
3. Find this line- Listen 80
4. Replace with the following line – Listen 78
5. Save the edited file
6. /etc/init.d/httpd restartApache HTTP server, Linux

Spuerb
Thank you
for windows change htpp.conf setting by changing Listen 80 to Listen 81(or any other port) , then change servername localhost:80
to servername localhost:81 then save changes and exit.
no browse for http://127.0.0.1:81, NOT=> http://127.0.0.1:80 or http://127.0.0.1
thanks dude it works
didnt worked…what about the rest of the calls to 80 like: #ServerName http://www.example.com:80
“ports.conf” search this file in search bar!
What is the actual path to the port?. I’m using Windows 7 if that helps
Its stupid
What about windows?
Hi,
Super STUFF