# What is the recommended practice for WordPress and Discourse on the same server?

**URL:** https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688
**Category:** WordPress
**Created:** [2월 1, 2015, 7:06오후 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688 "2015-02-01T19:06:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2월 1, 2015, 7:06오후 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688/1 "2015-02-01T19:06:03Z")

</div>

I know a lot of Discourse users are using WordPress as their blog/CMS, so I’m hoping for some knowledge & experience exchange.

I’m trying to ascertain if there is some kind of recommended practice for running WordPress and Discourse on the same (Dockerized) server. I doubt this [mini-how-to](https://meta.discourse.org/t/how-to-install-wordpress-discourse-on-the-same-server/8965/9) is still relevant.

**Why are we on a single (dedicated) server?**  
As an open source project we got ourselves free dedicated hosting with plenty of power to accommodate both WordPress and Discourse.

**What’s the problem?**  
Running WordPress in a Docker container was more difficult than we anticipated (for reasons which I can hopefully elaborate on later). We ended up running WordPress outside of Docker, but because of Docker & Discourse’s presence, this proved difficult as well.

All very vague, I know, but it’s exactly because our setup ended up being quite non-standard that I haven’t been able to wrap my head around it yet.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2월 1, 2015, 8:49오후 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688/2 "2015-02-01T20:49:50Z")

</div>

We may recommend WordPress in Docker but only because it will familiarize you with how Discourse runs in Docker, too. What exactly is the problem? This is extremely vague.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2월 1, 2015, 10:40오후 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688/3 "2015-02-01T22:40:29Z")

</div>

I’ll try get more info.

It’s not so much a problem I need solving though. This is just a small knowledge-quest. If someone’s been in a similar situation and came up with a set-up they’re happy with, do share. If I come up empty, no biggie.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2월 2, 2015, 6:50오전 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688/4 "2015-02-02T06:50:51Z")

</div>

I think that the only thing non-typical with Wordpress would be that you should use the nginx php runner instead of Apache. (This also gives you a central location for rules that would go into .htaccess files.)

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [9월 22, 2015, 12:04오후 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688/5 "2015-09-22T12:04:41Z")

</div>

This topic can (also) be closed in favour of the canonical answer here:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [9월 22, 2015, 12:24오후 UTC](https://meta.discourse.org/t/what-is-the-recommended-practice-for-wordpress-and-discourse-on-the-same-server/24688/6 "2015-09-22T12:24:19Z")

</div>


