# How to install Wordpress and Discourse together? (Ubuntu)

**URL:** https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017
**Category:** Self-hosting
**Created:** [5월 8, 2018, 9:44오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017 "2018-05-08T21:44:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [5월 8, 2018, 9:44오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/1 "2018-05-08T21:44:10Z")

</div>

Hi.

I’m currently using an Ubuntu server and I want to install Wordpress and Discourse, for example:  
**mydomain. com** (Wordpress)  
**forum.mydomain. com** or **mydomain. com/forum** (Discourse)

I tried some things but failed. Discourse need to be installed with Docker and Wordpress with Apache or Nginx, but there are some conflincts when I’m using both.

I’ve searched and read some topics but none helped me (not my situation or didn’t understood them).

Thanks for your help!

---

<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: [5월 8, 2018, 10:14오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/2 "2018-05-08T22:14:56Z")

</div>

> [@Sir\_Reyowski](#):
>
> I’ve searched and read some topics but none helped me (not my situation or didn’t understood them).

Without knowing what topics you read or you tried, there isn’t much way to know what to tell you. The easiest is to use two separate servers. The hardest is to try the subfolder (`example.com/forum`).

Did you follow any of these? [Use a subfolder (path prefix) to serve Discourse with multiple servers sharing a domain](https://meta.discourse.org/t/discourse-in-a-subfolder-multiple-servers-sharing-a-domain/30514). [Run other websites on the same machine as Discourse - #47](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247/47), [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)

---

<div class="post-metadata">

### Author: ![ron\_jeremy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ron_jeremy/32/56621_2.png) [@ron\_jeremy](https://meta.discourse.org/u/ron_jeremy)
#### Post date: [5월 8, 2018, 10:29오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/3 "2018-05-08T22:29:30Z")

</div>

I run 2 separate Droplets on Digital ocean. Works great.

---

<div class="post-metadata">

### Author: ![Cameron\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cameron_d/32/97535_2.png) [@Cameron\_D](https://meta.discourse.org/u/Cameron_D)
#### Post date: [5월 8, 2018, 10:37오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/4 "2018-05-08T22:37:00Z")

</div>

> [@Sir\_Reyowski](#):
>
> Discourse need to be installed with Docker and Wordpress with Apache or Nginx

Docker can be used to run applications other than Discourse. There is a preconfigured WordPress docker container here:

> **[wordpress - Official Image | Docker Hub](https://hub.docker.com/_/wordpress/)**
>
> The WordPress rich content management system can utilize plugins, widgets, and themes.

That can run alongside Discourse, then you follow the guide for running other websites on the same machine as Discourse and set up nginx on the host to serve the two subdomains (or Traefik in another container if you’re adventurous).

---

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [5월 9, 2018, 6:04오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/5 "2018-05-09T18:04:43Z")

</div>

I don’t use Digital Ocean, I have my own server

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [5월 9, 2018, 8:10오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/6 "2018-05-09T20:10:12Z")

</div>

I run a Wordpress site and a Discourse instance off the same droplet and used this guide. Worked well for me.

[https://blog.khophi.co/install-run-discourse-behind-nginx-right-way-first-time/](https://blog.khophi.co/install-run-discourse-behind-nginx-right-way-first-time/)

---

<div class="post-metadata">

### Author: ![Sir\_Reyowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sir_reyowski/32/174908_2.png) [@Sir\_Reyowski](https://meta.discourse.org/u/Sir_Reyowski)
#### Post date: [5월 30, 2018, 2:10오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/7 "2018-05-30T14:10:08Z")

</div>

I don’t rent a VPS at Digital Ocean.

I hosted my WP on my web-hosting and point a subdomain to my VPS.

Thanks for you help

---

<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: [11월 26, 2020, 2:17오후 UTC](https://meta.discourse.org/t/how-to-install-wordpress-and-discourse-together-ubuntu/87017/8 "2020-11-26T14:17:48Z")

</div>


