# 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:** [February 19, 2017, 1:39am 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

## AI-generated summary

The discussion revolves around resolving the issue of Port 80 being in use, which prevents the installation of Discourse. [m1raz](/t/-/57618/1) initially encounters the problem and receives suggestions to uninstall Apache, nginx, or lighttpd to clear the port. [cpradio](/t/-/57618/2) suggests running uninstall commands for these web servers, while [mitchellk](/t/-/57618/3) recommends editing the web server configuration to change the port or uninstalling it if not in use.

After uninstalling Apache and nginx, [m1raz](/t/-/57618/4) encounters another issue and shares a link to a related problem. [schungx](/t/-/57618/6) also experiences the issue and initially tries uninstalling the mentioned web servers, but the problem persists. However, [schungx](/t/-/57618/6) eventually resolves the issue by rebooting the VM, which stops tcp6 from listening on Port 80, allowing Discourse installation to proceed successfully.

<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:** [February 19, 2017, 1:39am 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:** [February 19, 2017, 1:43am 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:** [February 19, 2017, 8:10am 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:** [February 19, 2017, 3:54pm 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:** [February 19, 2017, 3:56pm 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:** [July 29, 2017, 4:19am 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!
