Friday, May 2, 2014

How to change wamp server default port in windows environment



Assumption


  1. I assume that you have already installed wamp server on your machine
  2. I am using windows 7 64 bit Operating System
  3. I have installed my wamp server in d:/wamp (Non-Operating system drive on my machine)
  4. I am using wamp 2.2 64 bit version
  5. Trying to change wamp default port 80 to port 8080

Now follow me to change default port no in windows environment

  1. First of Start wamp server from the start menu.
  2. You will get wamp icon in your system try. Irrespective of the status (irrespective of color of icon) of the wamp server left click on the icon. Pop-up menu will be open as below.
  3. Now go to the Apache >> Httpd.conf. This will open httpd.conf file in text editor usually in notepad. OR Alternatively you can access this file from file system “D:\wamp\bin\apache\apache2.2.22\conf\httpd.conf”. Go to the wamp folder. Here you will find bin. Now select one of the main components of wamp Apache and go to the apache folder.
  4. Select the desired apache version and open that folder. Within specific version of the apache folder you will find conf (configuration directory). Open this directory and you will reach to httpd.conf file
  5. Within httpd.conf file search for the “Listen". In old version of wamp search for "port" instead of "Listen"
  6. You will find “Listen 80” on approximately line no 46 now change it to Listen 8080
  7. Save your file
  8. By Clicking left click on the wamp icon and select “Restart All Services” from the menu item and wait for wamp server to restart.
  9. Hurray… you have change the default port to port 8080 so now your localhost work as http://localhost:8080

No comments: