Differences between revisions 36 and 37
Revision 36 as of 2017-10-06 12:22:52
Size: 3468
Editor: ?ycdtosa
Comment: disable 00-default, so redmine shows up as the root of http://<ip>/
Revision 37 as of 2017-10-06 12:33:31
Size: 3723
Editor: ?ycdtosa
Comment: Add small paragraph about having redmine on a different port.
Deletions are marked like this. Additions are marked like this.
Line 34: Line 34:

Alternatively, to use the same domain but a different port,
base your config on `apache2-passenger-host.conf`, then edit
`apache2.conf` to also Listen to <port> and `redmine.conf` accordingly.
In this case disabling `000-default` is not required.


Jessie (Debian 8)

Quick installation howto

1. Install your database, e.g. postgresql (or don't, if you want to use sqlite)

apt install postgresql # or mysql-server

2. Install Redmine with support for your database of choice

apt install redmine-pgsql # or redmine-mysql, or redmine-sqlite

There will be a prompt asking to confirm database configuration via dbconfig-common. The default Yes should be OK unless as indicated you are using an external database or want to otherwise manually configure this.

3. Configure the web server

apt install apache2 libapache2-mod-passenger
cp /usr/share/doc/redmine/examples/apache2-passenger-host.conf /etc/apache2/sites-available/redmine.conf
edit /etc/apache2/sites-available/redmine.conf
a2enmod passenger
a2ensite redmine.conf
a2dissite 000-default
service apache2 reload

To use the same domain shared with other applications, base your config on /usr/share/doc/redmine/examples/apache2-passenger-alias.conf instead.

Alternatively, to use the same domain but a different port, base your config on apache2-passenger-host.conf, then edit apache2.conf to also Listen to <port> and redmine.conf accordingly. In this case disabling 000-default is not required.

4. Log into Redmine at http://<ip>/ with the following default admin account:

username: admin
password: admin

Stretch (Debian 9)

it is advised (current state August 2017) to use psql instead of mariadb as these package installations worked just like the commands from Debian 9 without any problem - see below

mariadb problems

  • instead of mysql debian 9 supports mariadb which could according to [1] result in incompabilities -> maybe this could be the cause for this error:

error: template infile /usr/share/redmine/templates/database-.yml.template does not exist

  • had problems with db-config, created db-User and db manually
  • copied template db file and modified it according to db/dbuser:

cp database-mysql.yml.template /etc/redmine/default/database.yml

  • had to reinstall redmine again due to broken package status but encountered different error:

ActiveRecord::StatementInvalid: Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE  INDEX wiki_pages_wiki_id_title  ON wiki_pages (wiki_idtitle)

I was not able to solve this problem although I tried changing the ruby file and give a different limit, inspired by [2]

[1] http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Requirements

[2] https://stackoverflow.com/questions/10931307/ruby-on-rails-rake-schema-max-key-length-is-767-bytes

Differences from upstream Redmine

The Debian redmine package contains a few patches to support running multiple Redmine instances using a single codebase. You manage your instances by using dpkg-reconfigure redmine. This multi-instance support makes some things appear in places that are different from when you are using the upstream redmine:

  • The application logs are located under /var/log/redmine/${instance}/ (instead of /path/to/redmine/log)

  • The database configuration is located at /etc/redmine/${instance}/database.yml (instead of /path/to/redmine/config/database.yml)

  • File attachments are located under /var/lib/redmine/${instance}/files

  • Plugins should be placed under /usr/share/redmine/plugins. The folder doesn't exist by default and must be created. Don't use /usr/share/redmine/lib/plugins as this result to routing error in the application.

CategorySystemAdministration CategorySystemAdministration