WAMP Server Install on Windows – Change Port/Listen

After installing WAMP on Window 7, start the WAMP services via the system tray icon, and click on LocalHost. This should bring you to the WampServer default page. If you are not seeing it, the port for the Apache Server may need to be changed, as IIS7 Web Server may already be using Port 80 (the default Wamp Apache Port).

Solution

Go to C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf, and change

Listen 0.0.0.0:80
Listen [::0]:80

to

Listen 0.0.0.0:8080
Listen [::0]:8080

ServerName localhost:8080

The ports may also need to be changed in C:\wamp\wampmanager.ini and wampmanager.tpl. This is for the shortcuts on the WampServer tray icon to work (by default they will just go to localhost\{whaterver}.php

Restart the server, in Chrome, type

http://localhost:8080/

localhost:8080

localhost:8080

Html docs can be place in C:\wamp\www

Leave a Reply

You must be logged in to post a comment.