This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorials:redmine_svn_integration [2009/10/25 22:43] razvan added system setting |
tutorials:redmine_svn_integration [2020/07/20 09:16] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | = Redmine and Subversion integration = | + | ====== Redmine and Subversion integration |
| - | * This tutorial is about using native Redmine accounts for Subversion repository access. | + | |
| - | * Useful links | + | * Useful links |
| - | ** [[http:// | + | * [[http:// |
| - | ** [[http:// | + | * [[http:// |
| - | ** [[http:// | + | * [[http:// |
| - | == System settings == | + | ===== System settings |
| - | {{{ | + | * Debian GNU/Linux 5.0 Lenny, Apache2, MySQL5, Redmine 0.8< |
| koala:~# cat /etc/issue | koala:~# cat /etc/issue | ||
| Debian GNU/Linux 5.0 \n \l | Debian GNU/Linux 5.0 \n \l | ||
| Line 19: | Line 19: | ||
| Server version: Apache/ | Server version: Apache/ | ||
| Server built: | Server built: | ||
| + | |||
| + | koala:/ | ||
| + | mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2 | ||
| koala:/ | koala:/ | ||
| Path: . | Path: . | ||
| URL: http:// | URL: http:// | ||
| - | }}} | + | </ |
| + | * Redmine installation folder is {{{/ | ||
| - | == First steps == | ||
| - | * install required packages< | + | ===== First steps ===== |
| + | |||
| + | | ||
| apt-get install libapache2-svn libapache-dbi-perl libapache2-mod-perl2 libdbd-mysql-perl libdigest-sha1-perl | apt-get install libapache2-svn libapache-dbi-perl libapache2-mod-perl2 libdbd-mysql-perl libdigest-sha1-perl | ||
| </ | </ | ||
| - | * enable Apache2 modules< | + | |
| a2enmod dav | a2enmod dav | ||
| a2enmod dav_svn | a2enmod dav_svn | ||
| Line 37: | Line 42: | ||
| </ | </ | ||
| + | ===== Apache2 configuration ===== | ||
| + | |||
| + | * Perl module configuration< | ||
| + | koala:~# cd / | ||
| + | koala:/ | ||
| + | </ | ||
| + | * It's {{{/ | ||
| + | * Add the following lines to the Apache2 site configuration file< | ||
| + | PerlLoadModule Apache:: | ||
| + | < | ||
| + | DAV svn | ||
| + | SVNParentPath "/ | ||
| + | |||
| + | AuthType Basic | ||
| + | AuthName redmine | ||
| + | Require valid-user | ||
| + | |||
| + | PerlAccessHandler Apache:: | ||
| + | PerlAuthenHandler Apache:: | ||
| + | |||
| + | ## for mysql | ||
| + | RedmineDSN " | ||
| + | |||
| + | RedmineDbUser " | ||
| + | RedmineDbPass " | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Replace {{{databasename}}}, | ||
| + | |||
| + | ===== Git integration ===== | ||
| + | |||
| + | ==== Prepare ==== | ||
| + | |||
| + | * Enable {{{dav_fs}}} module< | ||
| + | a2enmod dav_fs | ||
| + | </ | ||
| + | * Register repositories in Apache2< | ||
| + | ./ | ||
| + | </ | ||
| + | * Add the following lines to the Apache2 site configuration file< | ||
| + | Alias / | ||
| + | < | ||
| + | DAV on | ||
| + | |||
| + | AuthType Basic | ||
| + | AuthName git-redmine | ||
| + | Require valid-user | ||
| + | |||
| + | PerlAccessHandler Apache:: | ||
| + | PerlAuthenHandler Apache:: | ||
| + | |||
| + | ## for mysql | ||
| + | RedmineDSN " | ||
| + | |||
| + | RedmineDbUser " | ||
| + | RedmineDbPass " | ||
| + | </ | ||
| + | </ | ||