# Recommend method of installation?

**URL:** https://meta.discourse.org/t/recommend-method-of-installation/25574
**Category:** Self-hosting
**Created:** [February 23, 2015, 5:16pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574 "2015-02-23T17:16:20Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![DirectGamerHD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/directgamerhd/32/38036_2.png) [@DirectGamerHD](https://meta.discourse.org/u/DirectGamerHD)
#### Post date: [February 23, 2015, 5:16pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/1 "2015-02-23T17:16:20Z")

</div>

I’ll be in the market for a forum soon. Unlike PHP forums, Discourse doesn’t make me want to put down a small animal upon first impressions.

**What I have Available**

- I’m sharing a dedicated server with one other person. (I’m not the owner)
- Support for Rails applications
- Jailed shell access (full access may be an option)

**Other Info**

- Never worked with Ruby applications
- What exactly is Docker?

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [February 23, 2015, 5:48pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/2 "2015-02-23T17:48:38Z")

</div>

Couple points you’ll want to consider:

- the only supported setup method involves Docker. If your server does not yet support Docker, installing it may be difficult. Using Docker requires `root` or root-equivalent privileges.  
Docker is a wrapper around recent kernels’ LXC framework. It allows you to run applications in a container that is isolated from the rest of the operating system; _almost_ like a virtual machine, except that LXC virtualizes certain kernel interfaces and data structures, not the hardware.

- If you do run Discourse in a Docker container, be aware that the default setup assumes that it will be the only webserver running on the machine and will try to grab the HTTP and HTTPS port. It is, however, possible to chain Discourse behind another webserver such as Apache, and there’s a howto regarding this topic in this forum.  
If you want to use Apache as the frontend server, you should _definitely_ use the `event` MPM. The default `prefork` MPM can not deal efficiently with long-lived connections, and Discourse uses longpolling to push notifications from the server to active clients.

- Installing Discourse without Docker is a bit of an adventure. It can be done but requires a fair bit of experience with general Linux admin, Ruby, and good Google-fu; and there is _no official_ support. The biggest hurdle is that you will almost certainly require `root` privileges to install missing dependencies along the way; among other things, you will need:

---

<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: [February 24, 2015, 12:26am UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/3 "2015-02-24T00:26:26Z")

</div>

> [@DirectGamerHD](#):
>
> Unlike PHP forums, Discourse doesn’t make me want to put down a small animal upon first impressions.

👍 🐇🔫

I think you’ll be happy with Discourse, but you _must_ be on the Docker install, it is the only one we support.

---

<div class="post-metadata">

### Author: ![DirectGamerHD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/directgamerhd/32/38036_2.png) [@DirectGamerHD](https://meta.discourse.org/u/DirectGamerHD)
#### Post date: [February 24, 2015, 4:13am UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/4 "2015-02-24T04:13:49Z")

</div>

I come from a community that switched to Discourse a little over a year ago and has 3.2K active members on the forums alone.

I love it as a member of said community, but it doesn’t seem like its the most user friendly when it comes to installation. I suppose that’s the price to pay.

---

<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: [February 24, 2015, 4:27am UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/5 "2015-02-24T04:27:28Z")

</div>

From a security standpoint, you would do note that Linux containers only prevent well-behaving applications from accidentally causing damage, they do _not_ prevent intentional damage.

_That being said_, if you have a recent enough kernel with AUFS, add your user to the `docker` group and it should work.

Should probably also read this:

[https://meta.discourse.org/t/advanced-troubleshooting-with-docker/15927](https://meta.discourse.org/t/advanced-troubleshooting-with-docker/15927)

---

<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: [February 24, 2015, 5:26am UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/6 "2015-02-24T05:26:21Z")

</div>

Why do you say that? I can install Discourse in 15 minutes and anyone can do it in 30… [Install Discourse in Under 30 Minutes](http://blog.discourse.org/2014/04/install-discourse-in-under-30-minutes/)

As long as your server is Docker compatible it is quite easy.

---

<div class="post-metadata">

### Author: ![DirectGamerHD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/directgamerhd/32/38036_2.png) [@DirectGamerHD](https://meta.discourse.org/u/DirectGamerHD)
#### Post date: [February 24, 2015, 5:22pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/7 "2015-02-24T17:22:59Z")

</div>

I can see what you mean. Also i’m a bit confused about Docker. Its basically a virtual machine to host the rails application for my web server- to my understanding.

As for Docker’s services, it looks like its bills you monthly in order to continue using its services. Much like any other hosting provider, correct?

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [February 24, 2015, 5:38pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/8 "2015-02-24T17:38:00Z")

</div>

No, Docker is free software and runs on your server. It is not an external service.

That said, you _can_ build a Docker “image” and distribute this through Docker’s image repository, and this may involve some costs, but Discourse does not use this feature.

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [February 24, 2015, 6:08pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/9 "2015-02-24T18:08:40Z")

</div>

> [@DirectGamerHD](#):
>
> Its basically a virtual machine to host the rails application for my web server- to my understanding.

Yes and no: [https://www.docker.com/whatisdocker/](https://www.docker.com/whatisdocker/) some call it a lightweight VM, it basically offers some of the advantages of virtualization, but comes along with a smaller memory footprint because the Docker images share the OS with the “host”.

---

<div class="post-metadata">

### Author: ![DirectGamerHD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/directgamerhd/32/38036_2.png) [@DirectGamerHD](https://meta.discourse.org/u/DirectGamerHD)
#### Post date: [February 27, 2015, 5:18pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/10 "2015-02-27T17:18:50Z")

</div>

Thanks for the help everyone.

Turns out the latest version of CentOS (CentOS 7) comes with Docker support, so it looks like I’m set for that part.

Now to get over possible conflicts with SSH access.

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [February 27, 2015, 6:42pm UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/11 "2015-02-27T18:42:21Z")

</div>

What SSH access conflicts are you afraid of? Should be straight forward: use the exposed SSH port if you want to connect from the outside…

---

<div class="post-metadata">

### Author: ![DirectGamerHD](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/directgamerhd/32/38036_2.png) [@DirectGamerHD](https://meta.discourse.org/u/DirectGamerHD)
#### Post date: [February 28, 2015, 2:28am UTC](https://meta.discourse.org/t/recommend-method-of-installation/25574/12 "2015-02-28T02:28:11Z")

</div>

Never used it before. That and its “Jailed Access”.
