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.
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.