Friday, October 25, 2013

How to change Apache port

The default port of Apache & IIS is 80. If you need to change your apache port. You may need to do small changes in your Apache setting file.

Open your httpd.conf file
IF you have Xampp then below path help you to find conf file
D:\xampp\apache\conf

IF you have wamp then below path help you to find conf file
D:\wamp\bin\apache\Apache2.2.21

In the file, find the line Listen 80 and change the port as per your need.
It like this

#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80

Save the conf file and restart the server.