Project management: Redmine

Table of Contents

Configuration
Apache setup

Configuration

by ross at 07:02:41 on June 2, 2013

Install requirements

Follow this page in order to install Apache, fastcgi and suEXEC (set SUEXEC_DOCROOT to /). Don't forget to install MySQL.

Nothing of the above is required. It's just the way I installed Redmine here. You can use, for exampe, Thin, nginx and Postgres as the database.

Install redmine

# cd /usr/ports/www/redmine
# make install clean
Uncheck THIN, check PASSENGER

Initialize

Create /usr/local/www/redmine/config/database.yml:

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: my_password
  encoding: utf8

If you use ruby 1.9 change adapter to mysql2.

Create and populate the database:

# mysql -u root -p
mysql> create database redmine character set utf8;
mysql> create user 'redmine'@'localhost' identified by 'my_password';
mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
mysql> flush privileges;
mysql> quit;

# sh
# cd /usr/local/www/redmine
# rake generate_session_store
# RAILS_ENV=production rake db:migrate
# RAILS_ENV=production rake redmine:load_default_data

Ownership and rights:

# cd /usr/local/www/redmine
# mkdir tmp tmp/pdf public/plugin_assets
# chmod -R 755 files log tmp public/plugin_assets
# cd public
# cp dispatch.fcgi.example dispatch.fcgi

# pw useradd redmine -d /usr/local/www/redmine
# chown -R redmine:redmine /usr/local/www/redmine

 

Comments