port 80 conflict

Last updated on 14-03-2018
 
The worst thing that can happen to a begginer after successfully installing wamp (or xampp) for the first time, is for it not to work. What's even worse than that, is to get "the white screen of death" (that's the official term, for real!)

When something like this happens, it's only logical for someone to assume they messed up with the installation process. As a result, they try uninstalling and re-installing it a couple of times before they ultimately give up.

What they don't know, is that the problem lies elsewhere. Let's find out.

Wamp (Windows Apache MySQL PHP), is used as local server so you can test your website before you go public. As the name suggests for itself, it uses Apache server software, which is the "thing" responsible for serving your webpage over the http protocol.

Apache, is set to "listen" port 80. This is not an issue, unless there's another software that uses the same port at the same time. Ususally, that software is Skype. The easy way to resolve it is to make sure you always run wamp before Skype. However, that's not something I recommend since Skype almost in all cases starts immediately after starting your pc.

Freeing port 80 in Skype

There's a more permanent way to resolve it by making sure port 80 is never occupied by Skype. To do that, follow the instructions below.

  1. Run Skype
  2. Go to Tools> Options > Advanced > Connection
  3. Uncheck the option that says, “Use port 80 and 443 as alternatives for incoming connections”
  4. Click Save
  5. Exit and then restart Skype
  6. Restart wamp

You can now run wamp and skype simultaneously without any conflicts.

Freeing port 80 in TeamViewer

If you're running TeamViewer,  there's a very good chance that you'll have a port 80 conflict with wamp. Follow these simple steps to diasble TeamViews from using port 80

  1. Run TeamViewer
  2. Go to extras> Options >
  3. Click on advanced> show advance options
  4. Check the option that says, “Don’t use incomming ports 80 and 443 
  5. Click Ok
  6. Exit and then restart TeamViewer

IIS's port 80 conflict in Windows 10

There have been a number of occasions reported with a port 80 conflict after upgrading to Windows 10. That's because Windows 10 run IIS (Internet Information Services, Microsoft's web server software) by default, at port 80. Inevitably, Apache can't run when there's another server software that listens o the same port. In order to run Apache, you have to stop IIS.

  1. Click the "start" icon at the bottom left of your screen
  2. Search for "Administrative Tools" and open it
  3. DoubleClick on "services" from the list
  4. Find "World Wide Web Publishing Service" and right-click it
  5. click on "stop"

This way will disable IIS temporarily so you can run Apache. The next time you'll start your pc, it will run again automatically. Although, if you want to manually run it, then instead of choosing "stop" (see above) then

  1. Right-click "World Wide Web Publishing Service"
  2. Click "Properties"
  3. Find "Startup type" dropdown list
  4. Select "manually"
  5. Click Ok

Freeing port 80 in wamp server

For more advanced users ther's another way to resolve the port 80 conflict. This time, we're going to change the apache settings in wamp. The reason for that, is because there are other software out there, except for skype, that use port 80 such as IIS, TeamViewer, Remote Desktop, Zonealarm, Tomcat and many more. That's why, instead of changing the port in all the other applications, we change it only in wamp.

I mentioned before, this is for more advanced users because you have to change some code, but it's super easy so anyone can do  it.

  1. Go to your "C:\wamp\Apache2\conf" directory
  2. Open the "http.conf" file with notepad
  3. Search (Ctrl&F) for the number "80"
  4. Replace it with "8080"
  5. Repeat until there are no search results for "80"
  6. Save the file and restart wamp

 

If you still have a problem with port 80, then comment below and I'll do my best to help you.

6 Thoughts on “Wamp port 80 coflict”

  • What if the last Skype version does not have such option ““Use port 80 and 443 as alternatives for incoming connections”?
    Thanks a lot for your help 🙂

    • Hi Cris,

      This is a good question because, since Microsoft removed this option from the latest version of Skype, a lot of people have the same problem. In my post I also show the detailed steps for changing port 80 in wamp instead of Skype. Now, if that’s something you find difficult to follow, or you don’t use port 80 for wamp but for something else, I’d suggest downloading the “classic Skype” version.
      Unfortunately, that’s the only way you can go. Classic Skype has the option for changing ports (in addition to a more friendly interface and features). Just be careful though! As soon as you install it, it will probably ask you to update to the latest version. If you accept, then you will face the same problem again. So, stay away from the update!
      I hope this helps and if you have any other questions feel free to contact us again!

  • Hi – speaking about WAMP, i modified the port in httpd.conf to 8080, but after restart apache automatically sets it to the previous one which is 80 and it’s in the conflict with IIS. Why does apache change it by itself? What should i do? Thanks.

  • fantastic post, very informative. I wonder why the other specialists of this sector don’t understand this.
    You should proceed your writing. I am confident, you’ve a huge readers’ base
    already!

  • I have tried with changing port number in http conf. But still wamp color is orange. Same error. Please suggest solution.

Leave a Reply

Your email address will not be published. Required fields are marked *