Last updated on February 20, 2018
By default Xampp server is run on 80 port, if you want to change this port to something, just follow the below steps it is pretty easy.
Before you start changing anything, make sure you don’t have Xampp running somewhere, especially services as they are running behind the scene.
How to change
we need to edit the httpd.conf
file to change the port Apache listens on. Below are the steps
1 . Go to
2. Open httpd.conf file
3. Search and change port. xxx stands for desired_port_number:
Listen 80 To Listen xxx
ServerName localhost:80 to ServerName localhost:xxx
after completing above changes , save and close the file.
If you wish to change ssl port, change the followings in
Listen 443 to Listen xxx
ServerName localhost:443 to ServerName localhost:xxx
After you have updated and saved the files, restart your Xampp.
That’s it.