How to change wamp server default port in windows environment
Assumption
- I assume that you have already installed wamp
server on your machine
- I am using windows 7 64 bit Operating System
- I have installed my wamp server in d:/wamp
(Non-Operating system drive on my machine)
- I am using wamp 2.2 64 bit version
- Trying to change wamp default port 80 to port 8080
Now follow me to change default port no in windows environment
- First of Start wamp server from the start menu.
- 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.
- 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.
- 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
- Within httpd.conf file search for the “Listen". In old version of wamp search for "port" instead of "Listen"
- You will find “Listen 80” on approximately line
no 46 now change it to Listen 8080
- Save your file
- By Clicking left click on the wamp icon and
select “Restart All Services” from the menu item and wait for wamp server to
restart.
- Hurray… you have change the default port to port
8080 so now your localhost work as http://localhost:8080
No comments:
Post a Comment