====== 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';
- (optionally) put DB dump from older version into newly created DB
- 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:
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
PassengerDefaultUser www-data
- create apache configuration /etc/apache2/sites-available/redmine.conf:
Listen 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
Order allow,deny
Allow from all
- reload apache
apache2ctl graceful
- access the redmine on port 3000
===== Migration =====
[[https://www.redmine.org/projects/redmine/wiki/HowTo_Migrate_Redmine_to_a_new_server_to_a_new_Redmine_version]]
- setup new server following the previous steps
- copy files from old server to new (files are in /var/lib/redmine/default/files) and don't forget to grant permissions for www-data user