# Port 80 appears to already be in use

**URL:** https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618
**Category:** Self-hosting
**Created:** [19 februari 2017 om 01:39 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618 "2017-02-19T01:39:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![m1raz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m1raz/32/67910_2.png) [@m1raz](https://meta.discourse.org/u/m1raz)
#### Post date: [19 februari 2017 om 01:39 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618/1 "2017-02-19T01:39:26Z")

</div>

Hello, when i run discourse\_setup, it says Port 80 is used. Maybe there is something hosting installed by default, so I want to clear port 80 successfull instalation.

```
Port 80 appears to already be in use.

If you are trying to run Discourse simultaneously with another web
server like Apache or nginx, you will need to bind to a different port

See https://meta.discourse.org/t/17247

```

What I must to do to clear this Port from anything what is using it. If it would help - I’m trying to install Discourse here 185.145.253.103 (index.html appears, so something is using port 80. I’m not sure what)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [19 februari 2017 om 01:43 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618/2 "2017-02-19T01:43:32Z")

</div>

Just running uninstall comands for apache, nginx, lighttpd to see which one removes it, that should clear it up for Discourse once any (or all) of those are removed.

---

<div class="post-metadata">

### Author: ![mitchellk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mitchellk/32/120419_2.png) [@mitchellk](https://meta.discourse.org/u/mitchellk)
#### Post date: [19 februari 2017 om 08:10 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618/3 "2017-02-19T08:10:43Z")

</div>

You can also just edit whatever web server is running on your server and just change it’s port to something obscure like 9900 so it can’t interfere but best as suggested by @cpradio is to just uninstall it if you never intend using any other web server

---

<div class="post-metadata">

### Author: ![m1raz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m1raz/32/67910_2.png) [@m1raz](https://meta.discourse.org/u/m1raz)
#### Post date: [19 februari 2017 om 15:54 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618/4 "2017-02-19T15:54:50Z")

</div>

@cpradio @mitchellk  
Soved by deliting apache and nginx, bu when i go to next step appears this problem

> [@Device docker0 does not exist](https://meta.discourse.org/t/device-docker0-does-not-exist/57633):
>
> Configuration file at containers/app.yml updated successfully! Device "docker0" does not exist. Cannot connect to the docker daemon - verify it is running and you have access After installing SMTP appers this. What I can do?

---

<div class="post-metadata">

### Author: ![mitchellk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mitchellk/32/120419_2.png) [@mitchellk](https://meta.discourse.org/u/mitchellk)
#### Post date: [19 februari 2017 om 15:56 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618/5 "2017-02-19T15:56:56Z")

</div>

Please post your app.yml here for us to see

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [29 juli 2017 om 04:19 UTC](https://meta.discourse.org/t/port-80-appears-to-already-be-in-use/57618/6 "2017-07-29T04:19:42Z")

</div>

I hit on this same problem, on an Ubuntu 17 VM.

Any idea how to disable the default application on port 80?

A list of commands to type will be nice, as it has been decades since I administered a Unix/Linux machine…

I used `apt-get remove` to remove `apache*`, `nginx*` and `lighttpd`, but it still says the port is in use.

**EDIT** : Got it to work. Turns out tcp6 was still listening on port 80. Rebooting the VM made it go away, and I was successful in installing Discourse. Thanks!
