# Something is occupying port 80 so I can’t install

**URL:** https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635
**Category:** Self-hosting
**Created:** [22 באפריל,‏ 2019,‏ 3:03pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635 "2019-04-22T15:03:52Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 3:03pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/1 "2019-04-22T15:03:52Z")

</div>

Long story as short as possible: I want to set up Discourse on Ubuntu 18.04. I installed the Docker application and it’s running. I went to install discourse and got the same “port 80 is occupied” error that so many get. (I’ve read a TON of support about it.) Here’s the error:

 ![port%2080%20install%20error](https://global.discourse-cdn.com/meta/original/3X/d/2/d24eb438eeb48de3bbd8753a318690def1db7a3d.jpeg)

So I uninstalled nginx and apache but I still have something using port 80. Here’s the list on what’s using port 80.

Have to put image of that result on another post due to restrictions of this forum.

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 3:04pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/2 "2019-04-22T15:04:32Z")

</div>

Here’s the list of things using port 80 that it will not allow me to put in the original post:

![port%2080%20issues](https://global.discourse-cdn.com/meta/optimized/3X/a/f/af3a80e7103874feb41a54400b0f01101acf4f5e_2_690x78.jpeg)

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [22 באפריל,‏ 2019,‏ 3:21pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/3 "2019-04-22T15:21:37Z")

</div>

httpd is still running - if you kill it off (best reboot to ensure it doesn’t come back) you’ll be fine.

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 3:23pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/4 "2019-04-22T15:23:11Z")

</div>

And how on earth do I kill that?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [22 באפריל,‏ 2019,‏ 3:25pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/5 "2019-04-22T15:25:21Z")

</div>

by running:

```plaintext
kill 5382 5389 5390 5391

```

you might have to kill their parent as well.

Again though, best approach is to reboot so you know it comes up in a known state.

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 3:25pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/6 "2019-04-22T15:25:46Z")

</div>

Thanks large! I’ll give it a go.

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 4:19pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/7 "2019-04-22T16:19:03Z")

</div>

Doesn’t work.

No matter what I kill, another number pops up using port 80. Example, I kill all those numbers and then it shows 30176 using it. Kill that, another number pops up.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [22 באפריל,‏ 2019,‏ 4:20pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/8 "2019-04-22T16:20:25Z")

</div>

If you run `ps axf | grep httpd` you’ll find the parent that needs killing.

Again, did you reboot?

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 4:28pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/9 "2019-04-22T16:28:21Z")

</div>

Yes. Twice.

That command you just gave me shows a snap program called nextcloud and at the end it has dforeground

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [22 באפריל,‏ 2019,‏ 4:30pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/10 "2019-04-22T16:30:54Z")

</div>

Did you know you had nextcloud installed?

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 4:31pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/11 "2019-04-22T16:31:12Z")

</div>

Nope. No clue. Finding out how to kill it and uninstall it now.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [22 באפריל,‏ 2019,‏ 4:32pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/12 "2019-04-22T16:32:34Z")

</div>

`sudo snap remove nextcloud` At a guess

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 4:34pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/13 "2019-04-22T16:34:33Z")

</div>

Thanks for all the help. It’s uninstalling now, then I’ll restart and try again.

---

<div class="post-metadata">

### Author: ![Parminio](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@Parminio](https://meta.discourse.org/u/Parminio)
#### Post date: [22 באפריל,‏ 2019,‏ 4:49pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/14 "2019-04-22T16:49:31Z")

</div>

That got it. Setup is started. Thank you!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [22 במאי,‏ 2019,‏ 4:58pm UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635/15 "2019-05-22T16:58:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
