Redmine : Installation sous CentOS 6

De Adadov.net wiki

Installation Apache et mod_passenger

[root@linux] # yum install httpd mod_passengerdblclick to copy

Téléchargement Redmine

[root@linux] # wget http://www.redmine.org/releases/redmine-2.6.2.tar.gzdblclick to copy
[root@linux] # tar xf redmine-2.6.2.tar.gz -C /var/www/
[root@linux] # ln -s /var/www/redmine-2.6.2 /var/www/redmine

Installation environnement Ruby

[root@linux] # yum install mysql-devel (si on utilise une DB MySQL)dblclick to copy
[root@linux] # yum install ruby-devel
[root@linux] # yum install ImageMagick-devel
[root@linux] # gem install bundler
[root@linux] # cd /var/www/redmine
[root@linux] # chown -R adadov .
[root@linux] # su - adadov
[root@linux] # bundle install --without development test

Création de la DB MySQL

{{#sqlcmd:CREATE DATABASE redmine CHARACTER SET utf8;

CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';

GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';|mysql>}}

Configuration Redmine

[root@linux] # cd configdblclick to copy
[root@linux] # cp database.yml{.example,}
[root@linux] # vim database.yml

Configuration de l'accès à la base de donnée

[root@linux] # rake generate_secret_tokendblclick to copy
[root@linux] # RAILS_ENV=production rake db:migrate
[root@linux] # RAILS_ENV=production rake redmine:load_default_data
[root@linux] # mkdir -p tmp tmp/pdf public/plugin_assetsdblclick to copy
[root@linux] # sudo chown -R apache:apache files log tmp public/plugin_assets
[root@linux] # sudo chmod -R 755 files log tmp public/plugin_assets

Configuration Apache

  <VirtualHost *:80>
    ServerName redmine.mondomaine.com
    DocumentRoot /var/www/redmine/public
    <Directory /var/www/redmine/public/>
                AllowOverride all
                Order allow,deny
                allow from all
                Options -MultiViews
    </Directory>
    ErrorLog logs/error_redmine.log
    LogLevel warn
    CustomLog logs/access_redmine.log combined
  </VirtualHost>