How to Change port in XAMPP

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 /apache/conf/
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 /apache/conf/extra/http-ssl.conf
Listen 443 to Listen xxx
to
ServerName localhost:443 to ServerName localhost:xxx

After you have updated and saved the files, restart your Xampp.

That’s it.

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.

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
DMCA.com Protection Status
0
Would love your thoughts, please comment.x
()
x