Project

General

Profile

Actions

ChiliProject

Some useful information also at https://projects.cs.ru.is/projects/samvinna/wiki/ChiliprojectRedmine

Ruby on rails

Run all these commands as root unless specified.

  1. First install ruby on rails as per https://help.ubuntu.com/community/RubyOnRails
    aptitude -y install ruby-full build-essential
  2. Next install apache
    aptitude -y install apache2 apache2-mpm-prefork apache2-prefork-dev
  3. Install mongrel (which will also install rubygems)
    a2enmod proxy
    a2enmod proxy_http
    a2enmod rewrite
    service apache2 restart
    aptitude -y install mongrel
    

Chiliproject

  1. Install rails via aptitude (sometimes not recommended)
    aptitude -y install rails
  2. Create chiliproject user and dir
    mkdir -p /var/www/chiliproject
    adduser --system --home /var/www/chiliproject --group --shell /bin/sh --disabled-login chiliproject
    
  3. Chiliproject install instructions (some overlap)
    apt-get update
    aptitude -y install apache2 ruby rubygems build-essential curl git subversion apache2-mpm-prefork mysql-server mysql-client
    aptitude -y install libopenssl-ruby1.8 libmysqlclient-dev libpq-dev libsqlite3-dev libssl-dev zlib1g-dev libreadline6-dev libxml2-dev libapache2-mod-passenger libmagick++-dev
    
  4. Setup the database (mysql)
    mysql -uroot -p
    create database chiliproject character set utf8;
    create user 'chiliproject'@'localhost' identified by 'my_password';  <--Make sure you change the password here to meet your needs.
    grant all privileges on chiliproject.* to 'chiliproject'@'localhost';
    exit
    
  5. become chiliproject user
    su chiliproject
  6. Grab the chiliproject code
    cd /var/www/redmine/
    git clone git://github.com/redmine/chiliproject.git
    cd chiliproject
    git checkout stable
    

Apache reconfig

http://stackoverflow.com/questions/10658017/apache-error-default-virtualhost-overlap-on-port-443

  1. Configure apache to have virtual hosts on port 443
    1. Edit /etc/apache2/ports.conf
    2. Put a "NameVirtualHost *:443" just above the "Listen 443"

SVN Repository access

http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl

  1. Install the dav modules
    aptitude -y install libapache2-svn libapache-dbi-perl \
    libapache2-mod-perl2 libdbd-mysql-perl libdigest-sha1-perl \
    libauthen-simple-ldap-perl
  2. Enable the apache DAV modules
    sudo a2enmod dav
    sudo a2enmod dav_svn # if you want to use svn
    sudo a2enmod dav_fs  # if you want to use git
    sudo a2enmod perl
  3. Edit Redmine.pm and replace references of SHA1 to SHA. Also put the database password
  4. Copy the Redmine.pm file into the right place
    cp extra/svn/Redmine.pm /usr/lib/perl5/Apache/Redmine.pm

Certificates

  1. copy the "wild-ru-public.crt" into /usr/share/ca-certificates
  2. Edit /etc/ca-certificates.conf and add wild-ru-public.crt
  3. run the update script
    update-ca-certificates

Updated by Joseph Foley over 9 years ago · 1 revisions