Change apache friends XAMPP Port on Windows

Sometimes we have to use IIS and XAMPP at same time in the running operating system. In the technical speaking IIS and Apache run at the same default port “80″. Therefore, we have to change default port either IIS or XAMPP, it depends on you. Jokes a part I never change any Microsoft defaults, nobody knows what happen if you do change

1. Beginning

To change the XAMPP server port, stop the server, if it is running already. Goto the XAMPP installation folder and locate the “httpd.conf” file into “<drive>:\xampp\apache\conf” and open it into Text Editor.

2. Edit configuration file

In the configuration file goto line # 47 or find below line in the file.

Listen 80

and replace the port 80 into your desire port:

Listen 1000

in the next step goto line # 176 or find below line in the file

ServerName localhost:80

and replace the port into the same port which you wrote in the line # 47

ServerName localhost:1000

3. Closing

Save the file and start your XAMPP server or restart your system. Now your IIS and XAMPP will work simultaneously or alternatively you can change IIS port instead of XAMPP port.

Thank you!


I'm Ayaz Ahmed Mast, I am a web developer and Instructor at Al Fateem Academy. My current weapons of choice are PHP CodeIgniter, jQuery, AJAX and Laravel. Being a Developer, I help clients bring their ideas into reality. Contact me today and I would love to hear about your business.

Leave a Reply

Your email address will not be published. Required fields are marked *