tel: +2348055401551 (sms, whatsapp)
skype: tokunboajewole

How to change Wampserver's default port

You are not the only one that gets pissed off especially if you run a webserver on your desktop / server and another application is using the same port. For example: Teamviewer

cap1

The following is the procedure to change the default port number: (port80 for WampServer).

1) Locate the filename httpd.conf in your Wamp/Apache install.

For a WAMPSERVER2.2 install, its located at:

C:\wamp\bin\apache\Apache2.2.21\conf>dir
Volume in drive C has no label.
Volume Serial Number is 9203-A442

Directory of C:\wamp\bin\apache\Apache2.2.21\conf

12/02/2011 07:02 AM

.
12/02/2011 07:02 AM ..
09/26/2011 08:50 AM 1,820 charset.conv
12/02/2011 07:02 AM extra
12/02/2011 07:06 AM 17,989 httpd.conf
09/26/2011 08:50 AM 17,877 httpd.conf.build
09/26/2011 08:50 AM 13,340 magic
09/26/2011 08:50 AM 51,294 mime.types
09/26/2011 08:50 AM 11,169 openssl.cnf
12/02/2011 07:02 AM original
6 File(s) 113,489 bytes

cap2

Open httpd.conf with your favourite editor and find the line with: Listen 80

80 is the port number, so change it to any number you want. I changed mine to 8080.

cap3

 

Restart your WAMPSEVER installation. Now, retype localhost:portnumber in your browser. Example: http://localhost:8080

cap4

thats all folks

Comments   

 
0 #7 Shivangi 2013-07-11 12:11
thanks alot..it helped me :)
Quote
 
 
0 #6 Joey 2013-02-22 09:59
Autoreply :-) :
Works fine! I changed the wrong line...
Dont make the same stupid mistake and dont change
ServerName localhost:80
but change
#Listen 12.34.56.78:80
Listen 8080
for
#Listen 12.34.56.78:80
Listen 80

Thx a lot for the tutorial
Quote
 
 
0 #5 Joey 2013-02-22 09:55
Same error as Zeba
Quote
 
 
0 #4 tokunbo 2013-02-19 14:58
You need to restart apache, perhaps close your browser and relaunch it again.
Quote
 
 
0 #3 Zeba 2013-02-14 10:23
I changed the port number to 8080 in the 'httpd.conf' file under folder 'C:wampbinapacheapache2.2.22conf'
and now when I access 'http://localho st:8080/' I get an error saying-
"Firefox can't establish a connection to the server at localhost:8080"
Quote
 
 
0 #2 Katita 2013-01-24 19:15
Thanks!
Quote
 
 
0 #1 milad d 2013-01-17 17:28
:-)

very good !
Quote
 

Add comment


Security code
Refresh

I use Linux 24x7

Recent Comments