# Comment installer Discourse sur un serveur Apache avec un site existant

**URL:** https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499
**Category:** Self-hosting
**Created:** [Février 6, 2019, 2:13 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499 "2019-02-06T14:13:54Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Johnny1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnny1/32/130914_2.png) [@Johnny1](https://meta.discourse.org/u/Johnny1)
#### Post date: [Février 6, 2019, 2:13 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/1 "2019-02-06T14:13:54Z")

</div>

Hi, I have a Wordpress site on my server and I need to install Discourse. I followed [this guide](https://meta.discourse.org/t/17247) but it assumes I have a running instance of Discourse, which I do not have. I tried google, but I keep coming up with the same error every time I run ./discourse-setup

This is the output:

> Port 80 appears to already be in use.
> 
> This will show you what command is using port 80  
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME  
> apache2 16511 root 4u IPv6 123057 0t0 TCP \*:http (LISTEN)  
> apache2 16514 www-data 4u IPv6 123057 0t0 TCP \*:http (LISTEN)  
> apache2 16515 www-data 4u IPv6 123057 0t0 TCP \*:http (LISTEN)  
> apache2 16516 www-data 4u IPv6 123057 0t0 TCP \*:http (LISTEN)  
> apache2 16517 www-data 4u IPv6 123057 0t0 TCP \*:http (LISTEN)  
> apache2 16518 www-data 4u IPv6 123057 0t0 TCP \*:http (LISTEN)  
> apache2 16550 www-data 4u IPv6 123057 0t0 TCP \*:http (LISTEN)

Any ideas?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Février 6, 2019, 2:33 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/2 "2019-02-06T14:33:15Z")

</div>

You will need to edit the app.yml file by hand to install on a different port.

---

<div class="post-metadata">

### Author: ![Johnny1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnny1/32/130914_2.png) [@Johnny1](https://meta.discourse.org/u/Johnny1)
#### Post date: [Février 6, 2019, 2:36 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/3 "2019-02-06T14:36:38Z")

</div>

I don’t have one since I can’t start the installation. Should I make one, and if so, what should it look like?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Février 6, 2019, 2:51 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/4 "2019-02-06T14:51:44Z")

</div>

Discourse-setup created it. It’s in the containers directory.

---

<div class="post-metadata">

### Author: ![Johnny1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnny1/32/130914_2.png) [@Johnny1](https://meta.discourse.org/u/Johnny1)
#### Post date: [Février 6, 2019, 2:53 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/5 "2019-02-06T14:53:58Z")

</div>

It didn’t.

root@LoadScreen:/var/discourse/containers# ls  
root@LoadScreen:/var/discourse/containers# ls -a  
. .. .gitkeep

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Février 6, 2019, 2:57 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/6 "2019-02-06T14:57:29Z")

</div>

So true;sorry about that. The guide you linked to describes how to create it. Or you can quit apache and then run discourse-setup.

You might also see [Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013)

A good first step would be to turn off apache and get discourse working, then try to make the changes to have apache reverse proxy.

---

<div class="post-metadata">

### Author: ![Johnny1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnny1/32/130914_2.png) [@Johnny1](https://meta.discourse.org/u/Johnny1)
#### Post date: [Février 6, 2019, 3:05 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/7 "2019-02-06T15:05:11Z")

</div>

Doing it, thanks! What would be the next steps? What specific changes should I make?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [Février 6, 2019, 3:51 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/8 "2019-02-06T15:51:04Z")

</div>

While we’re at it, I’d like to make one suggestion though, prefer moving to Nginx instead of Apache 2 as it is known to cause issues with discourse.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Février 6, 2019, 4:40 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/9 "2019-02-06T16:40:02Z")

</div>

For that matter, for a low volume site, it’s easier to have 2 1GB droplets than a single 2GB droplet. A single 1GB droplet won’t have enough RAM. If you already have a server with 4GB or more, it might make sense. For most people, the only compelling reason to have both on the same server is if you want to do a subfolder install.

---

<div class="post-metadata">

### Author: ![nicrats](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicrats/32/130674_2.png) [@nicrats](https://meta.discourse.org/u/nicrats)
#### Post date: [Février 6, 2019, 5:20 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/10 "2019-02-06T17:20:38Z")

</div>

I was experimenting with installing Discourse alongside Apache, but after a while I gave up as this was a challenge way above my skill level, and to prevent breaking anything more than I’d already broken, I decided it was a much better idea to setup a separate droplet for my forum, both to release pressure on my other server, and for a simpler management.

> [@pfaffman](#):
>
> For most people, the only compelling reason to have both on the same server is if you want to do a subfolder install.

I believe that’s possible with proxies, or am I completely lost now?

---

<div class="post-metadata">

### Author: ![Johnny1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnny1/32/130914_2.png) [@Johnny1](https://meta.discourse.org/u/Johnny1)
#### Post date: [Février 7, 2019, 12:23 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-apache-server-with-existing-site/108499/11 "2019-02-07T00:23:27Z")

</div>

Thank you all for your help.

And @nicrats that’s exactly how I feel and I think that’s what I might end up doing.
