Change Xampp Server Port Number

Joined
Jan 11, 2010
Messages
288
Reaction score
19
To change the XAMPP server port number fallow this 6 step's

1.Stop the XAMPP server.
2.Open the file [XAMPP Install Folder]/apache/conf/httpd.conf] (with notepad).
3.Now search for the string "Listen 80" .Change this 80 to any other number which you prefer.
4.Then search for the string “ServerName” and update the port number there also.
5.Save
6.Restart XAMPP server and you are done.

Good Luck !!
:thumbup1:
 
Last edited:
the thing is, every time when type website you must always add port number at the end.

Example

without adding :88/ website will not work, even you restart Xampp still not work.
 
default port for xampp is 80

so if you use 8080 or any other port you have

to add that port number to your website address

like " <--- if you use port 8080
 
try nstat to view what porgram use port 80
here is a link to Microsoft quick tutorial on using nstat on windows, which will list the ports that are in use and what is using them.



from the command line run netstat -ano | findstr "80"

you can use tcpview aswell: the command line is procmon and tcpview from sysinternals. get it from Microsoft's site there:



i bet its teamviewer or skype
 
Back