- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
This is an old revision of the document!
Table of Contents
Redmine
A free and open source, web-based project management and issue tracking tool. It allows users to manage multiple projects and associated subprojects. It features per project wikis and forums, time tracking, and flexible role based access control. It includes a calendar and Gantt charts to aid visual representation of projects and their deadlines. Redmine integrates with various version control systems and includes a repository browser and diff viewer.
Installation
- install required packages:
apt-get install redmine-mysql
- do not setup database connection during setup
- create new database
CREATE DATABASE redmine; GRANT ALL privileges ON redmine.* TO redmine@localhost IDENTIFIED BY 'redmine';
- setup database manually in /etc/redmine/database.yaml:
production: adapter: mysql2 database: redmine host: localhost port: username: redmine password: redmine encoding: utf8
- create database structure:
cd /usr/share/redmine/ bundle exec rake db:migrate RAILS_ENV=production
- create a symlink to working directory:
ln -s /usr/share/redmine /var/lib/redmine/default/passenger
- install passenger module to apache:
apt-get install libapache2-mod-passenger
- setup default user for passenger in /etc/apache2/mods-available/passenger.conf:
<IfModule mod_passenger.c> PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby PassengerDefaultUser www-data </IfModule>
- create apache configuration /etc/apache2/sites-available/redmine.conf:
Listen 3000 <VirtualHost *:3000> # ServerName my.domain.name # this is the passenger config RailsEnv production # create a link in /var/lib/redmine/default/passenger to /usr/share/redmine PassengerAppRoot /var/lib/redmine/default/passenger SetEnv X_DEBIAN_SITEID "default" Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/ DocumentRoot /usr/share/redmine/public <Directory "/usr/share/redmine/public"> Order allow,deny Allow from all </Directory> </VirtualHost>
- reload apache
apache2ctl graceful
- access the redmine on port 3000
Migration
- setup new server following the previous steps
- copy files from old server to new (files are in /var/lib/redmine/default/files)
- put db dump from old server to new database
linux/redmine.1446566855.txt.gz · Last modified: 2015/11/03 17:07 by vondra