Redmine

From Andreida
  • Debian 8 - Jessie (Currently - 2022-11-27 - no Redmine support for Debian 11!)
  • If you are using a VM, give it at least 256 MB.

get it going

new variant with backport for redmine

TEST: IN PROGRESS


apt-get install postgresql postgresql-contrib

(todo)

old variant with apt-get for redmine

  • install required packages
apt-get install apache2 libapache2-mod-fcgid mysql-server libapache2-mod-passenger
  • enable mod rewrite.load
cd /etc/apache2/mods-enabled
ln -s ../mods-available/rewrite.load
  • install redmine
apt-get install redmine redmine-mysql
  • copy some(all?) of the following files
cd /etc/apache2/sites-available
cp /usr/share/doc/redmine/examples/apache2-host.conf .
cp /usr/share/doc/redmine/examples/apache2-alias.conf .
cp /usr/share/doc/redmine/examples/apache2-passenger-alias.conf .
cp /usr/share/doc/redmine/examples/apache2-passenger-host.conf .
  • enable the config files
cd /etc/apache2/sites-enabled
ln -s ../sites-available/apache2-host.conf
ln -s ../sites-available/apache2-alias.conf
ln -s ../sites-available/apache2-passenger-alias.conf
ln -s ../sites-available/apache2-passenger-host.conf
  • visit your ip
    • create a new account, which will be pending approval
    • login as admin/admin
    • approve the new account
    • change your admin password

mail

  • Make your server being able to send mails:
dpkg-reconfigure exim4-config
  • Test it with
 echo bla | mail -s test you@yourDomain.com
  • Get the configuration file for redmine
cd /etc/redmine/default
cp /usr/share/redmine/config/configuration.yml.example ./configuration.yml
  • Allow local mail delivery (do NOT use tabs, use 2 spaces)
default:
  email_delivery:
    delivery_method: :smtp
  • reload apache
/etc/init.d/apache2 reload
  • Change admin email

subversion

If you are using a custom ssl-certificate, you will perhaps get problems. One way to fix this:

  • give in /etc/passwd www-data a bash:
www-data:x:33:33:www-data:/var/www:/bin/bash
  • change to the user www-data
su - www-data
  • provoke the question to save the certificate permanently:
svn list https://<IP>/svn/<REPOSITORY><PATH> --username <USER>
  • try to save the certificate
  • copy the failed path and create the directory as root
mkdir /var/www/.subversion/auth/svn.ssl.server -p
  • allow the creation of files in that directory
chmod o+w /var/www/.subversion/auth/svn.ssl.server
  • as www-data, try again to list the svn directory
svn list https://<IP>/svn/<REPOSITORY><PATH> --username <USER>
  • save the certificate
  • depending on where your server is, you will want to protect the directory again
chmod o-w /var/www/.subversion/auth/svn.ssl.server
  • don't allow login for www-data in /etc/passwd
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin