InstallRedmineOnDebianStableApacheMysqlPassenger » History » Version 1
Jan Niggemann (redmine.org team member), 2013-01-21 22:07
New installation instrucions for debian
1 | 1 | Jan Niggemann (redmine.org team member) | h1. DebianInstall |
---|---|---|---|
2 | |||
3 | h1. 1: Install ruby, rails, gems and passenger |
||
4 | |||
5 | h2. 1.1 Prepare your system |
||
6 | |||
7 | <pre>apt-get install gcc build-essential zlib1g zlib1g-dev zlibc libzlib-ruby libssl-dev libyaml-dev libcurl4-openssl-dev apache2-mpm-prefork apache2-prefork-dev libapr1-dev</pre> |
||
8 | |||
9 | h2. 1.2 download, build and install ruby |
||
10 | |||
11 | <pre>wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz |
||
12 | tar xvfz ruby-1.9.3-p327.tar.gz |
||
13 | cd ruby-1.9.2-p0 |
||
14 | ./configure --enable-pthread --prefix=/usr/local |
||
15 | make && make install</pre> |
||
16 | |||
17 | h2. 1.3 check if ruby works |
||
18 | |||
19 | <pre>ruby –v</pre> |
||
20 | |||
21 | h2. 1.4 make ruby support OpenSSL |
||
22 | |||
23 | <pre>cd ruby-1.9.2-p0 |
||
24 | cd ext/openssl/ |
||
25 | ruby extconf.rb |
||
26 | make && make install</pre> |
||
27 | |||
28 | h2. 1.5 gem installed? |
||
29 | |||
30 | By now, gem should already be installed, check: |
||
31 | <pre>gem -v</pre> |
||
32 | |||
33 | h2. 1.6 install rails |
||
34 | |||
35 | <pre>gem install rails</pre> |
||
36 | |||
37 | h2. 1.7 install passenger (application server) |
||
38 | |||
39 | <pre>gem install passenger |
||
40 | passenger-install-apache2-module</pre> |
||
41 | |||
42 | h2. 1.8 configure apache |
||
43 | |||
44 | Put this in /etc/apache/mods-available/passenger.load |
||
45 | <pre>LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so</pre> |
||
46 | |||
47 | And put this in /etc/apache/mods-available/passenger.conf |
||
48 | <pre>PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18 |
||
49 | PassengerRuby /usr/local/bin/ruby |
||
50 | PassengerDefaultUser www-data</pre> |
||
51 | |||
52 | |||
53 | h2. 1.9 activate module |
||
54 | |||
55 | <pre>a2enmod passenger</pre> |