Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:redmine [2010/03/05 23:53] razvan added LDAP specification and HTTPS access |
tutorials:redmine [2020/07/20 09:16] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | = Redmine = | + | ====== Redmine |
- | * Install and configure Redmine on Debian | + | |
- | == Installation == | + | ===== Installation |
- | * Debian GNU/Linux Testing (squeeze) repositories contain a Redmine package. If you are using Debian GNU/Linux Lenny (stable version), make sure you add a //testing// repository in {{{/ | + | |
deb http:// | deb http:// | ||
deb-src http:// | deb-src http:// | ||
</ | </ | ||
- | * Update packages & install Redmine using {{{apt-get}}}:< | + | |
rosedu:~# apt-get update | rosedu:~# apt-get update | ||
rosedu:~# apt-get install redmine | rosedu:~# apt-get install redmine | ||
</ | </ | ||
- | * In the configuration dialog, I prefer selecting an [[http:// | + | |
- | * In case of using Debian GNU/Linux Lenny, I sugest uncommeting the above lines from {{{/ | + | * In case of using Debian GNU/Linux Lenny, I sugest uncommeting the above lines from {{{/ |
- | == Configuration == | + | ===== Configuration |
- | * Important files/ | + | |
- | ** {{{/ | + | * {{{/ |
- | ** {{{/ | + | * {{{/ |
- | ** {{{/ | + | * {{{/ |
- | ** {{{/ | + | * {{{/ |
- | ** {{{/ | + | * {{{/ |
- | ** {{{/ | + | * {{{/ |
- | === Apache2 integration === | + | ==== Apache2 integration |
- | * Use sample configuration file to Apache2 {{{conf.d/ | + | |
- | * Update configuration file to suit your needs. | + | * Update configuration file to suit your needs. |
- | * Make sure {{{mod_rewrite}}} and {{{mod_fcgid}}} are enabled:< | + | * Make sure {{{mod_rewrite}}} and {{{mod_fcgid}}} are enabled:< |
rosedu:/ | rosedu:/ | ||
Module rewrite already enabled | Module rewrite already enabled | ||
Line 34: | Line 34: | ||
Module fcgid already enabled | Module fcgid already enabled | ||
</ | </ | ||
- | * Restart Apache in order to deploy the configuration.< | + | |
- | # / | + | |
</ | </ | ||
- | === Basic configuration === | + | ==== Basic configuration |
- | * The default administrative account is admin (default password is {{{admin}}}) | + | |
- | * After logging in, it is advised to update the {{{admin}}} account, change password etc. | + | * After logging in, it is advised to update the {{{admin}}} account, change password etc. |
- | * Go to {{{Administration -> Information}}} for a quick checklist of the installation. | + | * Go to {{{Administration -> Information}}} for a quick checklist of the installation. |
- | * You should browse the {{{Administration -> Settings}}} menu and configure basic setting for the Redmine installation. | + | * You should browse the {{{Administration -> Settings}}} menu and configure basic setting for the Redmine installation. |
+ | ==== LDAP authentication ==== | ||
- | === LDAP configuration | + | * Please check [[http:// |
+ | * Go to {{{Administration -> Settings -> Authentication}}}. | ||
+ | * Click on the LDAP authentication link and fill required fields. For my particular LDAP installation, | ||
+ | * **Name**: swarm.cs.pub.ro LDAP authentication | ||
+ | * **Host**: swarm.cs.pub.ro | ||
+ | * **Port**: 636, LDAPS | ||
+ | * **Account**: | ||
+ | * **Password**: | ||
+ | * **Base DN**: dc=swarm,dc=cs,dc=pub,dc=ro | ||
+ | * **On-the-fly user creation**: checked | ||
+ | * Attributes | ||
+ | * **Login**: uid | ||
+ | * **Firstname**: | ||
+ | * **Lastname**: | ||
+ | * **Email**: mail | ||
+ | * The **on-the-fly user creation** option allows users to register into Redmine. You don't have to create a Redmine account. Authentication is going to be handled through LDAP. | ||
- | * Go to {{{Administration -> Settings -> Authentication}}}. | + | ==== HTTPS access ==== |
- | * Click on the LDAP authentication link and fill required fields. For my particular LDAP installation, | + | |
- | ** **Name**: swarm.cs.pub.ro LDAP authentication | + | |
- | ** **Host**: swarm.cs.pub.ro | + | |
- | ** **Port**: 636, LDAPS | + | |
- | ** **Account**: | + | |
- | ** **Password**: | + | |
- | ** **Base DN**: dc=swarm,dc=cs,dc=pub,dc=ro | + | |
- | ** **On-the-fly user creation**: checked | + | |
- | ** Attributes | + | |
- | *** **Login**: uid | + | |
- | *** **Firstname**: | + | |
- | *** **Lastname**: | + | |
- | *** **Email**: mail | + | |
- | * The **on-the-fly user creation** option allows users to register into Redmine. You don't have to create a Redmine account. Authentication is going to be handled through LDAP. | + | |
- | === HTTPS access === | + | |
- | + | ||
- | * Create an HTTPS-able Virtual Host and add the following line to the HTTP Virtual Host:< | + | |
Redirect permanent / https:// | Redirect permanent / https:// | ||
</ | </ | ||
- | = Old Redmine installation tutorial = | + | ====== Old Redmine installation tutorial |
- | * This tutorial draft is part of the work of installing Redmine from source on a Debian GNU/Linux Testing (squeeze) system. | + | |
- | == System settings == | + | ===== System settings |
- | * Debian GNU/Linux Testing (squeeze)< | + | |
ixlabs:~# cat /etc/issue | ixlabs:~# cat /etc/issue | ||
Debian GNU/Linux squeeze/sid \n \l | Debian GNU/Linux squeeze/sid \n \l | ||
</ | </ | ||
- | * kernel 2.6.30, CPU Pentium 4 2.66GHz, 1GB RAM< | + | |
ixlabs:~# uname -a | ixlabs:~# uname -a | ||
Linux ixlabs 2.6.30-2-686 #1 SMP Sat Sep 26 01:16:22 UTC 2009 i686 GNU/Linux | Linux ixlabs 2.6.30-2-686 #1 SMP Sat Sep 26 01:16:22 UTC 2009 i686 GNU/Linux | ||
Line 103: | Line 103: | ||
Swap: | Swap: | ||
</ | </ | ||
- | * Apache 2.2.14< | + | |
ixlabs:~# apache2 -v | ixlabs:~# apache2 -v | ||
Server version: Apache/ | Server version: Apache/ | ||
Line 109: | Line 109: | ||
</ | </ | ||
- | == Scripts == | + | ===== Scripts |
- | * The scripts used throughout the process are stored in [[http:// | + | |
- | == Installation steps == | + | ===== Installation steps ===== |
- | === Install Packages === | + | ==== Install Packages |
< | < | ||
Line 121: | Line 121: | ||
</ | </ | ||
- | === Download Redmine === | + | ==== Download Redmine |
- | * I'm using Subversion to checkout the latest stable branch as described on the [[http:// | + | |
mkdir -p $FULL_CHECKOUT_PATH | mkdir -p $FULL_CHECKOUT_PATH | ||
svn co http:// | svn co http:// | ||
</ | </ | ||
- | * {{{FULL_CHECKOUT_PATH}}} is the root folder for the Redmine instance; it's {{{/ | + | |
- | == Configuration steps == | + | ===== Configuration steps ===== |
- | === Update Rails version === | + | ==== Update Rails version |
- | * The current Redmine stable version (0.8.6, on October 14, 2009) defaults to using Rails 2.1.2. | + | |
- | * My Debian (squeeze) installation uses Rails 2.2.3< | + | * My Debian (squeeze) installation uses Rails 2.2.3< |
ixlabs: | ixlabs: | ||
Desired=Unknown/ | Desired=Unknown/ | ||
Line 143: | Line 143: | ||
ii rails 2.2.3-1 | ii rails 2.2.3-1 | ||
</ | </ | ||
- | * I have to comment out the {{{RUBY_GEM_VERSION}}} variable definition in {{{$FULL_CHECKOUT_PATH/ | + | |
- | #RAILS_GEM_VERSION = ' | + | |
</ | </ | ||
- | === Configure the database === | + | ==== Configure the database |
- | * I'm using MySQL as database backend. | + | |
- | * First step is creating the database:< | + | * First step is creating the database:< |
mysql> create database redmine; | mysql> create database redmine; | ||
Query OK, 1 row affected (0.00 sec) | Query OK, 1 row affected (0.00 sec) | ||
Line 160: | Line 160: | ||
Query OK, 0 rows affected (0.00 sec) | Query OK, 0 rows affected (0.00 sec) | ||
</ | </ | ||
- | * I'm using the following script to configure the database for Redmine:< | + | |
</ | </ |