Browse Source

Add a Debian 8 installation note (#223)

* Add a Debian 8 installation note

According to the conversation in f0a863feecd4b138520, Debian 8 installs
an older version of nginx by default. This adds a note telling people
how to install a newer one.

* updating wording
Darius Kazemi 7 years ago
parent
commit
03ee8bedfa
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Running-Mastodon/Production-guide.md

+ 10 - 0
Running-Mastodon/Production-guide.md

@@ -188,6 +188,16 @@ and install an ident daemon, which does not come installed by default:
     sudo systemctl start pidentd
     sudo systemctl restart postgresql
 
+### Debian 8
+
+Under Debian 8, the default version of nginx available is too old to work with the above configuration file (as it uses http2). To install a newer version of nginx that supports http2 (v1.9.5+), you have to add the jessie-backports repo to your `sources.list`:
+
+```bash
+$ echo "deb http://ftp.debian.org/debian jessie-backports main" | sudo tee -a /etc/apt/sources.list
+$ sudo apt-get update
+$ sudo apt-get install -t jessie-backports nginx
+```
+
 ## Rbenv
 
 It is recommended to use rbenv (exclusively from the `mastodon` user) to install the desired Ruby version. Follow the guides to [install rbenv][1] and [rbenv-build][2] (I recommend checking the [prerequisites][3] for your system on the rbenv-build project and installing them beforehand, obviously outside the unprivileged `mastodon` user)