# Apache and discourse

**URL:** https://meta.discourse.org/t/apache-and-discourse/79134
**Category:** Self-hosting
**Created:** [January 27, 2018, 2:10am UTC](https://meta.discourse.org/t/apache-and-discourse/79134 "2018-01-27T02:10:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Oussema\_Tayzon](https://avatars.discourse-cdn.com/v4/letter/o/3be4f8/32.png) [@Oussema\_Tayzon](https://meta.discourse.org/u/Oussema_Tayzon)
#### Post date: [January 27, 2018, 2:10am UTC](https://meta.discourse.org/t/apache-and-discourse/79134/1 "2018-01-27T02:10:27Z")

</div>

hello guys i want to run apache with discourse because i have another script php that i want to run it any body have any idea

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [January 27, 2018, 2:46am UTC](https://meta.discourse.org/t/apache-and-discourse/79134/2 "2018-01-27T02:46:04Z")

</div>

From what I can tell, it takes some effort to run Apache and Discourse together. A quick search will bring up several topics that ask similar questions. I’d suggest using the search on this site and read through all of the topics relating to using Apache and Discourse. Here are a couple results with some good information to get you started:

[https://meta.discourse.org/t/discourse-and-apache-using-same-ports/55888](https://meta.discourse.org/t/discourse-and-apache-using-same-ports/55888)

> [@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):
>
> It’s not as daunting as it sounds! While this may sound a bit intimidating at first, it’s really not all that bad. You basically need to do two things: Install HAProxy (or an alternative) which will take over port 80 and then divert your Discourse traffic to your docker container, and all your other sites to your usual Apache set-up. Let Apache know which port to listen for. While this is only a rough guide, it should do a good job of pointing you in the right direction. Let’s get star…

---

<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: [January 27, 2018, 2:54am UTC](https://meta.discourse.org/t/apache-and-discourse/79134/3 "2018-01-27T02:54:07Z")

</div>


