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