Redmine : Installation sous CentOS 6

De Adadov.net wiki
Révision datée du 26 février 2015 à 00:08 par Adadov (discussion | contributions) ((by SublimeText.Mediawiker))
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

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

<file> CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; </file>

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

<file>

 <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 ${APACHE_LOG_DIR}/error_redmine.log
   LogLevel warn
   CustomLog ${APACHE_LOG_DIR}/access_redmine.log combined
 </VirtualHost>

</file>