You can set the port number in the Apache server httpd.conf configuration httpd.conf .
Usually inside the "conf" folder of the Apache installation folder. (Let's say c:\wamp\Apache2\conf\httpd.conf )
Then change the line Listen 80 to Listen 8081 . Reboot the Apache server.
Tip. You can install IIS and Apache at the same time, and you can work simultaneously. All you need to do is set up different port numbers for Apache and IIS.
By default, both of them use port 80, but you can change it as described above.
I forgot to mention when you use a port number other than 80, you MUST change the address bar of the browser as http://localhost:8081/ or http://127.0.0.1:8081/
source share