HowTo install Redmine on CentOS 5 » History » Version 2
Serafim J Fagundes, 2010-12-28 17:24
Correction of words
1 | 1 | Serafim J Fagundes | h2. Assuming |
---|---|---|---|
2 | |||
3 | * Apache is up and running |
||
4 | * Apache has previously been used and works quite well |
||
5 | * MySQL is up and running |
||
6 | * MySQL has previously been used and works quite well |
||
7 | * Your are logged as root |
||
8 | * The next steps are done successively without errors |
||
9 | |||
10 | h3. Get Ruby |
||
11 | |||
12 | bq. cd ~/Downloads # YOUR FOLDER OF CHOICE |
||
13 | ftp ftp.ruby-lang.org |
||
14 | cd /pub/ruby |
||
15 | get ruby-1.8.7.pXXX.tar.gz |
||
16 | tar zxvf ruby-1.8.7.pXXX.tar.gz ruby-1.8.7.pXXX |
||
17 | cd ruby-1.8.7.pXXX |
||
18 | ./configure |
||
19 | make |
||
20 | make install |
||
21 | ruby -v |
||
22 | which ruby |
||
23 | cd .. |
||
24 | |||
25 | h3. Get Gems |
||
26 | |||
27 | bq. wget http://production.cf.rubygems.org/rubygems/rubygems-1.x.tgz |
||
28 | tar zxvf rubygems-1.x.tgz rubygems-1.x |
||
29 | cd rubygems-1.x |
||
30 | ruby setup.rb |
||
31 | gem -v |
||
32 | which gem |
||
33 | cd .. |
||
34 | |||
35 | h3. Install Passenger |
||
36 | |||
37 | bq. gem install passenger |
||
38 | passenger-install-apache2-module |
||
39 | |||
40 | h3. Restart Apache |
||
41 | |||
42 | h3. Download Redmine |
||
43 | |||
44 | bq. wget http://rubyforge.org/frs/download.php/73692/redmine-1.x.tar.gz # GET LATEST VERSION ON RUBYFORGE |
||
45 | tar zxvf redmine-1.x.tar.gz redmine-1.x |
||
46 | |||
47 | h3. Copy the folder to its HTTP document root folder |
||
48 | |||
49 | cp redmine-1.x /var/www/redmine-1.x |
||
50 | |||
51 | h3. Configure Apache to host the documents |
||
52 | |||
53 | h3. Install Bundler |
||
54 | |||
55 | bq. gem install Bundler |
||
56 | |||
57 | h3. Add the Bundler Boot and preinitializer code |
||
58 | |||
59 | (For more info go to the "Bundler site":http://gembundler.com/ ) |
||
60 | |||
61 | h3. Create the Gemfile and register these gems in it |
||
62 | |||
63 | * "rake", "0.8.3" |
||
64 | * "rack", "1.0.1" |
||
65 | * "i18n", "0.3.7" |
||
66 | * "rubytree", "0.5.2", :require => "tree" |
||
67 | * "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay |
||
68 | * "mysql" |
||
69 | |||
70 | bq. bundle install |
||
71 | |||
72 | h3. Create the Redmine MySQL database |
||
73 | |||
74 | h3. Configure database.yml (rename database.yml.example) |
||
75 | |||
76 | h3. Set the production environment (optional) |
||
77 | |||
78 | Uncomment the following line: |
||
79 | |||
80 | bq. ENV['RAILS_ENV'] ||= 'production' |
||
81 | |||
82 | h3. Generate the session store |
||
83 | |||
84 | bq. RAILS_ENV=production bundle exec rake generate_session_store |
||
85 | |||
86 | h3. Migrate the database models |
||
87 | |||
88 | bq. RAILS_ENV=production bundle exec rake db:migrate |
||
89 | |||
90 | h3. Load default data (optional) |
||
91 | |||
92 | bq. RAILS_ENV=production bundle exec rake redmine:load_default_data |
||
93 | |||
94 | Follow instructions. |
||
95 | |||
96 | h3. Rename dispatch CGI files |
||
97 | |||
98 | bq. mv dispatch.cgi.example dispatch.cgi |
||
99 | mv dispatch.fcgi.example dispatch.fcgi |
||
100 | mv dispatch.rb.example dispatch.rb |
||
101 | |||
102 | h3. Edit .htaccess file for CGI dispatch configuration |
||
103 | |||
104 | h3. Chown and Chmod files for read/write access for the Apache user |
||
105 | |||
106 | bq. cd .. |
||
107 | chown -R apache:apache redmine-1.x |
||
108 | chmod -R 755 redmine-1.x |
||
109 | |||
110 | 2 | Serafim J Fagundes | h3. Redmine should be fully installed now and fully usable |
111 | 1 | Serafim J Fagundes | |
112 | Enjoy! |