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