Pick a port number. Investigate all your utilized ports with Netstat (coordinated to XAMPP). ...
1) Edit the record " http.conf "
This record ought to be found in C:\xampp\apache\conf on Windows or in container/apache for Linux.
- Search "listen"
- Change default port 80 to another port: illustration => listen 8080
- Search servername : localhost:80 transform it to localhost:yourport
2) Edit the record " http-ssl.conf " ...
- Listen 443
- <VirtualHost _default_:443>
- ServerName www.example.com:443 or ServerName localhost:433
Replace them by with an other port number (8013 for this illustration) :
- Listen 8013
- <VirtualHost _default_:8013>
- ServerName www.example.com:8013 or ServerName localhost:8013
Save the record.
Restart the Apache Server.
0 on: "How to change httpd or Apache port in xampp or warmp server"