Project

General

Profile

HowTo Install Redmine using Debian package » History » Version 10

Piotr Serwa, 2011-02-09 03:38

1 1 Jérémy Lal
h1. HowTo Install Redmine using Debian package
2
3
A redmine debian package is available in squeeze, sid and "lenny-backports":http://backports.org/dokuwiki/doku.php?id=instructions
4
Featuring:
5
* automatic database configuration,
6
* multiple instances support.
7
8
The core package is redmine.
9
Three packages (redmine-*) provide correct dependencies for mysql, pgsql, sqlite.
10
11
Currently there is no plugins support, although it's on the way.
12 2 Piotr Serwa
13
14
h1. Installation details
15
16 3 Piotr Serwa
h2. Install the necessary packages 
17 2 Piotr Serwa
18 3 Piotr Serwa
From root console:
19 1 Jérémy Lal
20 3 Piotr Serwa
@apt-get install mysql@
21
during mysql setup, provide a new root password for mysql
22 1 Jérémy Lal
23 3 Piotr Serwa
@apt-get install redmine@
24
during redmine install, select mysql database with local connection, set the admin password for redmine_default database
25 2 Piotr Serwa
26 10 Piotr Serwa
27
h2. Correct the bug (wrong display):
28
29
vi $redmine_dir/vendor/rails/activesupport/lib/active_support/vendor.rb
30
31
and modify from
32
gem 'i18n', '>= 0.1.3'
33
in
34
gem 'i18n', '>= 0.1.3', '< 0.4.0' 
35 3 Piotr Serwa
@apt-get install libapache2-mod-passenger@
36 2 Piotr Serwa
37 3 Piotr Serwa
38
h2. Do some configuration
39
40 1 Jérémy Lal
@ln -s /usr/share/redmine/public /var/www/redmine@
41 2 Piotr Serwa
@chown -R www-data:www-data /var/www/redmine@
42
@echo "RailsBaseURI /redmine" > /etc/apache2/sites-available/redmine@
43
@a2ensite redmine@
44
@/etc/init.d/apache2 reload@
45
@/etc/init.d/apache2 restart@
46
47 4 Piotr Serwa
h2. Configure email smtp server
48
49
Copy from template:
50
@cp /usr/share/doc/redmine/examples/email.yml.example /etc/redmine/default/mail.yml@
51
52 5 Piotr Serwa
Edit (at the end, there are uncommented production / development blocks to be filled in):
53 4 Piotr Serwa
@vi /etc/redmine/default/mail.yml@
54
55 3 Piotr Serwa
h2. Run the browser
56
57
Open http://localhost/redmine
58 4 Piotr Serwa
59 1 Jérémy Lal
Log in as admin / admin
60 6 Piotr Serwa
61
h2. Futher configuration - SVN
62
63 7 Piotr Serwa
Get the API key (settings / repositories)
64 1 Jérémy Lal
65 8 Piotr Serwa
Make a crontab to have repositories generated in the background: 
66
67
@crontab -e@
68
69 9 Piotr Serwa
In the editor, paste the following (this runs the scan of the projects and if needed it creates the svn repositories):
70
@/5 * * * * /usr/bin/ruby /usr/share/redmine/extra/svn/reposman.rb --redmine localhost/redmine --svn-dir /usr/home/svn --owner www-data --group www-data --url file:///usr/home/svn --verbose --key=YOUR_API_KEY_HERE --command="/usr/bin/svnadmin create" >> /var/log/reposman.log@
71 6 Piotr Serwa
72
Configure servername/svn, so that svn repositories are available over apache webdav:
73
fixme