Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to run WAMP server on a different port onlocalhost?

I am already running IIS on localhost:80 and I want to run WAMP server as well.

share|improve this question
up vote 1 down vote accepted

Open up WAMP settings file "http.conf" with a notepad. It's usually located in:


Then press CTRL + F to bring up find prompt, type "80" and hit enter. You should now see the line for setting the port. Change it to whatever you like (for example 8888), save the file and restart the web server.

Now you can access your Apache server with "localhost:8888".

share|improve this answer
thanks, that helped :) – Zain Shaikh Nov 5 '10 at 21:51

In version 2.2 of WAMP I found the config file under C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf.

Also, I had to change line 46 to:

Listen 80

and line 171 to:

ServerName localhost:80
share|improve this answer
Thank you! This worked for me with WampServer 2.2. – styfle Feb 15 '13 at 1:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.