programming faqs interview questions tech technical educational freshers guide preparation interviews hr telephonic
try another color:
try another fontsize: 60% 70% 80% 90%
Programming FAQs

How to change port number of apache

we can do it by changing

we can do it by changing apache configuration file httpd.conf

open http.conf

Search for Listen
- you can see something Listen 80
here 80 is the port number of apache, change it to 81

Search for ServerName
- you can find a line - ServerName localhost:80

change it to 81

Save the file and restart apache.

open browser http://localhost:81/

now you will see your root directory index page in browser

yes, your apache port has changed to 81