Wiki » Historique » Version 219
  Patrice Nadeau, 2018-03-24 16:18 
  
| 1 | 214 | Patrice Nadeau | # Redmine | 
|---|---|---|---|
| 2 | 6 | Patrice Nadeau | |
| 3 | 31 | Patrice Nadeau | Logiciel de gestion de projets, sources, bugs et timeline. | 
| 4 | Contient un module de Wiki, de fichiers. | ||
| 5 | Supporte aussi les systèmes de version de fichier (Git, SVN entre autre). | ||
| 6 | Disponible à http://www.redmine.org/projects/redmine/wiki/Download | ||
| 7 | |||
| 8 | De base, ne fonctionne pas avec Apache | ||
| 9 | 1 | Patrice Nadeau | |
| 10 | Sa principale difficulté d’installation est sa dépendance à Ruby. | ||
| 11 | Voir aussi : | ||
| 12 | 219 | Patrice Nadeau | |
| 13 | 1 | Patrice Nadeau | * http://bitnami.com/stack/redmine | 
| 14 | * http://www.turnkeylinux.org/redmine | ||
| 15 | |||
| 16 | 121 | Patrice Nadeau | {{lastupdated_at}} {{lastupdated_by}} | 
| 17 | |||
| 18 | 94 | Patrice Nadeau | --- | 
| 19 | 31 | Patrice Nadeau | |
| 20 | 94 | Patrice Nadeau | {{toc}} | 
| 21 | |||
| 22 | 214 | Patrice Nadeau | ## Installation | 
| 23 | 94 | Patrice Nadeau | |
| 24 | 32 | Patrice Nadeau | Ce guide documente une installation GNU/Linux avec les version suivantes : | 
| 25 | 180 | Patrice Nadeau | * openSUSE 13.2 | 
| 26 | 193 | Patrice Nadeau | * Redmine 3.1.1 | 
| 27 | 32 | Patrice Nadeau | |
| 28 | 214 | Patrice Nadeau | ### Prérequis | 
| 29 | 1 | Patrice Nadeau | |
| 30 | Un serveur *LAMP(Linux, Apache, MySQL, PHP)* [[guides_opensuse:|openSUSE]] *fonctionnel*. | ||
| 31 | 56 | Patrice Nadeau | |
| 32 | 44 | Patrice Nadeau | Les logiciels supplémentaires suivants : | 
| 33 | 207 | Patrice Nadeau | |
| 34 | 219 | Patrice Nadeau | zypper install libmysqlclient-devel ruby-2.1 ruby21-devel rubygem-bundler rubygem-mysql2 rubygem-pg ImageMagick ImageMagick-devel libxml2-devel libxslt-devel git gcc make | 
| 35 | 32 | Patrice Nadeau | |
| 36 | 214 | Patrice Nadeau | ### MySQL | 
| 37 | 94 | Patrice Nadeau | |
| 38 | 32 | Patrice Nadeau | Création de la base de donnés. | 
| 39 | Substituer les items suivants à votre choix : | ||
| 40 | 214 | Patrice Nadeau | |
| 41 | 32 | Patrice Nadeau | * redmine : Usager pour la base de donnés. | 
| 42 | * password : Mot de passe de la base de donnees. | ||
| 43 | * db : Nom de la base de donnés. | ||
| 44 | |||
| 45 | 1 | Patrice Nadeau | Lancer MySQL : | 
| 46 | 32 | Patrice Nadeau | |
| 47 | 219 | Patrice Nadeau | mysql -u root -p | 
| 48 | |||
| 49 | 1 | Patrice Nadeau | Commandes MySQL : | 
| 50 | |||
| 51 | 219 | Patrice Nadeau | create database db character set utf8; | 
| 52 | create user 'redmine'@'localhost' identified by 'password'; | ||
| 53 | grant all privileges on db.* to 'redmine'@'localhost'; | ||
| 54 | commit; | ||
| 55 | quit; | ||
| 56 | |||
| 57 | |||
| 58 | 32 | Patrice Nadeau | ### Redmine | 
| 59 | 214 | Patrice Nadeau | |
| 60 | 219 | Patrice Nadeau | L’installation sera faite dans **\srv\redmine** (exemple avec la version 3.1) | 
| 61 | 189 | Patrice Nadeau | |
| 62 | 219 | Patrice Nadeau | cd /srv/ | 
| 63 | svn co http://svn.redmine.org/redmine/branches/3.1-stable redmine | ||
| 64 | cd redmine | ||
| 65 | cp config/database.yml.example config/database.yml | ||
| 66 | cp config/configuration.yml.example config/configuration.yml | ||
| 67 | mkdir public/plugin_assets | ||
| 68 | |||
| 69 | |||
| 70 | 33 | Patrice Nadeau | Si un usager MySQL autre que _root_ ou mot de passe diffèrent est utilisé : | 
| 71 | 219 | Patrice Nadeau | Éditer le fichier **config/database.yml**, section *Production* et modifier les lignes : | 
| 72 | 1 | Patrice Nadeau | |
| 73 | 219 | Patrice Nadeau | * **username** | 
| 74 | * **password** | ||
| 75 | 33 | Patrice Nadeau | |
| 76 | 219 | Patrice Nadeau | Éditer le fichier **config/configuration.yml** et modifier la configuration SMTP. | 
| 77 | |||
| 78 | 214 | Patrice Nadeau | ### Ruby | 
| 79 | 33 | Patrice Nadeau | |
| 80 | 34 | Patrice Nadeau | Installation des gems de Ruby | 
| 81 | 1 | Patrice Nadeau | |
| 82 | 219 | Patrice Nadeau | cd redmine | 
| 83 | gem install bundler | ||
| 84 | gem install activerecord-mysql2-adapter | ||
| 85 | bundle install --without development test | ||
| 86 | |||
| 87 | |||
| 88 | 1 | Patrice Nadeau | ### Initialisation | 
| 89 | 214 | Patrice Nadeau | |
| 90 | 1 | Patrice Nadeau | Création de la cryptographie, de la structure et des donnés de base : | 
| 91 | |||
| 92 | 219 | Patrice Nadeau | cd /srv/redmine | 
| 93 | rake generate_secret_token | ||
| 94 | RAILS_ENV=production rake db:migrate | ||
| 95 | RAILS_ENV=production rake redmine:load_default_data | ||
| 96 | |||
| 97 | |||
| 98 | 34 | Patrice Nadeau | ### Serveur web | 
| 99 | 1 | Patrice Nadeau | |
| 100 | Redmine peux être utiliser avec le serveur inclus _webrick_ (port 3000) ou _Apache_ (port 80). | ||
| 101 | |||
| 102 | #### Webrick | ||
| 103 | |||
| 104 | 60 | Patrice Nadeau | Ouvrir dans le pare-feu le port TCP 3000 : | 
| 105 | 1 | Patrice Nadeau | |
| 106 | 219 | Patrice Nadeau | yast firewall services add tcpport=3000 zone=EXT | 
| 107 | |||
| 108 | |||
| 109 | 69 | Patrice Nadeau | Lancer le serveur web | 
| 110 | 34 | Patrice Nadeau | |
| 111 | 219 | Patrice Nadeau | cd /srv/redmine | 
| 112 | ruby bin/rails server webrick -e production | ||
| 113 | |||
| 114 | |||
| 115 | 214 | Patrice Nadeau | ##### Transformation en daemon | 
| 116 | 94 | Patrice Nadeau | |
| 117 | 35 | Patrice Nadeau | Le script original vient de http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_openSUSE | 
| 118 | 219 | Patrice Nadeau | Copier le script dans le fichier **/etc/init.d/redmine** | 
| 119 | 1 | Patrice Nadeau | |
| 120 | 35 | Patrice Nadeau | Le modifier de la manière suivante : | 
| 121 | 214 | Patrice Nadeau | |
| 122 | 35 | Patrice Nadeau | * REDMINE_BIN=/srv/redmine/current/script/rails | 
| 123 | 1 | Patrice Nadeau | * REDMINE_USER=user | 
| 124 | 35 | Patrice Nadeau | * Corriger le «typo» à la ligne 73 : $REDMI-NE_BIN -> $REDMINE_BIN | 
| 125 | * Dans la section stop, après la ligne killproc, ajouter *rm $PIDFILE* | ||
| 126 | |||
| 127 | Rendre le fichier exécutable, l’ajouter aux services SUSE et l’exécuter au démarrage : | ||
| 128 | |||
| 129 | 219 | Patrice Nadeau | chmod 0755 /etc/init.d/redmine | 
| 130 | cp -s /etc/init.d/redmine /usr/bin/rcredmine | ||
| 131 | chkconfig -a redmine | ||
| 132 | |||
| 133 | |||
| 134 | 214 | Patrice Nadeau | #### Apache | 
| 135 | 1 | Patrice Nadeau | |
| 136 | 45 | Patrice Nadeau | Transformation pour utilisation avec Apache. | 
| 137 | 219 | Patrice Nadeau | |
| 138 | 45 | Patrice Nadeau | * N'utilise pas _webrick_ | 
| 139 | * Accessible par le port 80 au lieu de 3000 | ||
| 140 | |||
| 141 | 54 | Patrice Nadeau | Information provenant de : | 
| 142 | 219 | Patrice Nadeau | |
| 143 | 54 | Patrice Nadeau | * web : | 
| 144 | 219 | Patrice Nadeau | * http://martin-denizet.com/install-redmine-2-5-x-with-git-and-subversion-on-debian-with-apache2-rvm-and-passenger/ | 
| 145 | * http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine | ||
| 146 | * http://www.redmine.org/boards/2/topics/43924 | ||
| 147 | 214 | Patrice Nadeau | * livre : "Mastering Redmine":http://shop.oreilly.com/product/9781849519144.do | 
| 148 | 1 | Patrice Nadeau | |
| 149 | 166 | Patrice Nadeau | ### Modules Apache | 
| 150 | |||
| 151 | 46 | Patrice Nadeau | > Apache 2.4 | 
| 152 | 45 | Patrice Nadeau | |
| 153 | Ajout | ||
| 154 | 1 | Patrice Nadeau | |
| 155 | 219 | Patrice Nadeau | zypper install libcurl-devel apache2-devel apache2-mod_perl perl-Apache-DBI subversion-server | 
| 156 | |||
| 157 | |||
| 158 | 45 | Patrice Nadeau | Activation des modules Apache | 
| 159 | |||
| 160 | 219 | Patrice Nadeau | a2enmod ssl | 
| 161 | a2enmod perl | ||
| 162 | a2enmod dav | ||
| 163 | a2enmod dav_svn | ||
| 164 | a2enmod dav_fs | ||
| 165 | a2enmod rewrite | ||
| 166 | a2enmod headers | ||
| 167 | |||
| 168 | |||
| 169 | 46 | Patrice Nadeau | ### Module _Passenger_ | 
| 170 | 45 | Patrice Nadeau | |
| 171 | 219 | Patrice Nadeau | cd /srv/redmine | 
| 172 | gem install passenger | ||
| 173 | passenger-install-apache2-module.ruby2.1 | ||
| 174 | 1 | Patrice Nadeau | |
| 175 | 90 | Patrice Nadeau | Changer les droits sur le fichiers de log | 
| 176 | |||
| 177 | 219 | Patrice Nadeau | chmod 0666 log/production.log | 
| 178 | |||
| 179 | 90 | Patrice Nadeau | Créer le dossier des fichiers temporaire | 
| 180 | 219 | Patrice Nadeau | |
| 181 | 103 | Patrice Nadeau | > Par défaut les fichiers sont dans _/tmp_ mais se font enlever par le « clean-up » journalier et doivent être refait avec un reload d'Apache | 
| 182 | 219 | Patrice Nadeau | |
| 183 | mkdir tmp/passenger | ||
| 184 | |||
| 185 | 93 | Patrice Nadeau | |
| 186 | 214 | Patrice Nadeau | ### Activation de la configuration | 
| 187 | 46 | Patrice Nadeau | |
| 188 | 216 | Patrice Nadeau | Créer le fichier **/etc/apache2/conf.d/passenger.conf** et ajouter la configuration inscrite par l'installation. | 
| 189 | 61 | Patrice Nadeau | |
| 190 | 215 | Patrice Nadeau | Ajouter dans **/etc/apache2/vhosts.d/vhost.conf** | 
| 191 | 45 | Patrice Nadeau | |
| 192 | 215 | Patrice Nadeau | <VirtualHost *:80> | 
| 193 | # La ligne suivante est nécessaire seulement si plusieurs site web son présents sur le même serveur. | ||
| 194 | ServerName redmine.yourdomain.com | ||
| 195 | DocumentRoot /srv/redmine/public | ||
| 196 | 1 | Patrice Nadeau | |
| 197 | 215 | Patrice Nadeau | RailsEnv production | 
| 198 | PassengerAppRoot /srv/redmine | ||
| 199 | PassengerTempDir /srv/redmine/tmp/passenger | ||
| 200 | 1 | Patrice Nadeau | |
| 201 | 215 | Patrice Nadeau | <Directory "/srv/redmine/public"> | 
| 202 | Options Indexes ExecCGI FollowSymLinks | ||
| 203 | AllowOverride None | ||
| 204 | Order deny,allow | ||
| 205 | Require all granted | ||
| 206 | </Directory> | ||
| 207 | </VirtualHost> | ||
| 208 | |||
| 209 | |||
| 210 | 65 | Patrice Nadeau | Relancer Apache : | 
| 211 | 215 | Patrice Nadeau | |
| 212 | systemctl reload apache2 | ||
| 213 | 45 | Patrice Nadeau | |
| 214 | 214 | Patrice Nadeau | ## Post-installation | 
| 215 | 68 | Patrice Nadeau | |
| 216 | 71 | Patrice Nadeau | A partir d’un navigateur web, se brancher à : | 
| 217 | * Webrick : http://server:3000 | ||
| 218 | 1 | Patrice Nadeau | * Apache : http://server | 
| 219 | |||
| 220 | 69 | Patrice Nadeau | Utiliser l’usager *admin* avec le mot de passe *admin*. | 
| 221 | 1 | Patrice Nadeau | Vérifier la configuration dans *Administration*, *Information*. | 
| 222 | |||
| 223 | 80 | Patrice Nadeau | Si un avertissement apparait pour l’écriture des répertoires, changer les droits : | 
| 224 | 82 | Patrice Nadeau | > Semble être nécessaire que pour Apache | 
| 225 | 1 | Patrice Nadeau | <pre><code class="bash"> | 
| 226 | 82 | Patrice Nadeau | cd /srv/redmine | 
| 227 | 160 | Patrice Nadeau | chmod -R 0777 public/plugin_assets | 
| 228 | chmod -R 0777 files | ||
| 229 | 102 | Patrice Nadeau | chown -R wwwrun:www tmp | 
| 230 | 105 | Patrice Nadeau | # Pour la macro "thumbnails" du wiki, le plugin "redmine_people" nécessite au moins 0775 | 
| 231 | chmod -R 0777 tmp/thumbnails | ||
| 232 | 80 | Patrice Nadeau | </code></pre> | 
| 233 | 1 | Patrice Nadeau | |
| 234 | 214 | Patrice Nadeau | ## Personnalisation | 
| 235 | 29 | Patrice Nadeau | |
| 236 | 214 | Patrice Nadeau | ### Ajout d’un logo | 
| 237 | 187 | Patrice Nadeau | |
| 238 | 1 | Patrice Nadeau | > Cette étape sera à refaire lors d'une mise à jour. | 
| 239 | 187 | Patrice Nadeau | |
| 240 | 36 | Patrice Nadeau | Les informations viennent de : http://www.redmine.org/projects/redmine/wiki/Howto_add_a_logo_to_your_Redmine_banner | 
| 241 | |||
| 242 | 1 | Patrice Nadeau | Copier le logo dans _/srv/redmine/public/images/logo.png_ | 
| 243 | |||
| 244 | 195 | Patrice Nadeau | Modifier le fichier _/srv/redmine/app/views/layouts/base.html.erb_ | 
| 245 | 1 | Patrice Nadeau | * Si on ne veux plus afficher le titre, mettre en commentaire : | 
| 246 | <pre><code class="ruby"> | ||
| 247 | <!--<h1><%= page_header_title %></h1>--> | ||
| 248 | </code></pre> | ||
| 249 | 186 | Patrice Nadeau | * Ajouter en dessous la ligne | 
| 250 | <pre><code class="ruby"> | ||
| 251 | <img src="<%= Redmine::Utils.relative_url_root %>/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/> | ||
| 252 | </code></pre> | ||
| 253 | 37 | Patrice Nadeau | |
| 254 | 186 | Patrice Nadeau | Relancer Redmine | 
| 255 | 72 | Patrice Nadeau | |
| 256 | 214 | Patrice Nadeau | ### Plugins | 
| 257 | 172 | Patrice Nadeau | |
| 258 | 173 | Patrice Nadeau | Modules supplémentaires pour ajouter des fonctionnalités à Redmine. | 
| 259 | |||
| 260 | 209 | Patrice Nadeau | > Source de problème lors de mise à jour si incompatibilité. | 
| 261 | 1 | Patrice Nadeau | |
| 262 | 214 | Patrice Nadeau | #### Redmine Rouge | 
| 263 | 4 | Patrice Nadeau | |
| 264 | 1 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source. | 
| 265 | 13 | Patrice Nadeau | |
| 266 | 217 | Patrice Nadeau | [Langage supporté](http://rouge.jayferd.us/demo) | 
| 267 | 1 | Patrice Nadeau | |
| 268 | https://github.com/ngyuki/redmine_rouge | ||
| 269 | |||
| 270 | 217 | Patrice Nadeau | <code class="bash"> | 
| 271 | cd /srv/redmine/plugins | ||
| 272 | |||
| 273 | 210 | Patrice Nadeau | # Enlever l'ancienne version (si présente) | 
| 274 | rm -r redmine_rouge | ||
| 275 | 1 | Patrice Nadeau | |
| 276 | 218 | Patrice Nadeau | Télécharger la nouvelle avec git | 
| 277 | |||
| 278 | git clone https://github.com/ngyuki/redmine_rouge.git | ||
| 279 | cd .. | ||
| 280 | bundle.ruby2.1 install | ||
| 281 | |||
| 282 | 74 | Patrice Nadeau | Relancer redmine | 
| 283 | 5 | Patrice Nadeau | |
| 284 | 214 | Patrice Nadeau | #### Code Highlight | 
| 285 | 1 | Patrice Nadeau | |
| 286 | 9 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button | 
| 287 | 10 | Patrice Nadeau | |
| 288 | 9 | Patrice Nadeau | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage. | 
| 289 | |||
| 290 | 1 | Patrice Nadeau | Installation | 
| 291 | 218 | Patrice Nadeau | |
| 292 | cd /srv/redmine/plugins | ||
| 293 | git clone https://github.com/mediatainment/redmine_codebutton.git | ||
| 294 | cd .. | ||
| 295 | rake redmine:plugins | ||
| 296 | rake redmine:plugins:migrate RAILS_ENV=production | ||
| 297 | |||
| 298 | 10 | Patrice Nadeau | # Relancer Redmine | 
| 299 | 1 | Patrice Nadeau | rcredmine restart | 
| 300 | 95 | Patrice Nadeau | </code></pre> | 
| 301 | |||
| 302 | Ajout des langages supplémentaires supportées par le « plug-in » _Redmine Rouge_. Voir "ici":https://github.com/mediatainment/redmine_codebutton/issues/2 | ||
| 303 | Éditer le fichier */srv/redmine/plugins/redmine_codebutton/assets/javascripts/wiki-codehighlight.js* | ||
| 304 | 1 | Patrice Nadeau | * Ajouter les langages voulus dans la variable *codeRayLanguages* | 
| 305 | 95 | Patrice Nadeau | |
| 306 | Relancer Apache | ||
| 307 | <pre><code class="bash"> | ||
| 308 | systemctl reload apache2.service | ||
| 309 | 1 | Patrice Nadeau | </code></pre> | 
| 310 | |||
| 311 | 214 | Patrice Nadeau | #### Like Button | 
| 312 | 97 | Patrice Nadeau | |
| 313 | Bouton pour Facebook, Google+ et Twitter | ||
| 314 | |||
| 315 | 98 | Patrice Nadeau | http://www.redmine.org/plugins/like | 
| 316 | 97 | Patrice Nadeau | |
| 317 | 98 | Patrice Nadeau | Installation | 
| 318 | 1 | Patrice Nadeau | |
| 319 | 98 | Patrice Nadeau | <pre><code class="bash"> | 
| 320 | cd /srv/redmine/plugins | ||
| 321 | svn svn co http://svn.s-andy.com/like-button like | ||
| 322 | </code></pre> | ||
| 323 | 100 | Patrice Nadeau | |
| 324 | 98 | Patrice Nadeau | Relancer Redmine | 
| 325 | 97 | Patrice Nadeau | |
| 326 | 214 | Patrice Nadeau | #### Wiki Extensions | 
| 327 | 113 | Patrice Nadeau | |
| 328 | 179 | Patrice Nadeau | Voir #52 | 
| 329 | 122 | Patrice Nadeau | |
| 330 | 1 | Patrice Nadeau | Ajoute des macros au Wiki de Redmine | 
| 331 | 115 | Patrice Nadeau | > La dernière version est disponible à https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads | 
| 332 | 114 | Patrice Nadeau | |
| 333 | 118 | Patrice Nadeau | Parmi les macros ajoutées: | 
| 334 | 119 | Patrice Nadeau | * Emoticons : Un bouton apparait pour ajouter des « smilley » qui seront afficher en graphique | 
| 335 | 118 | Patrice Nadeau | * !{{lastupdated_by}} : affiche le nom de la dernière personne à avoir modifier la page | 
| 336 | 1 | Patrice Nadeau | * !{{lastupdated_at}} : affiche la date de la dernière modification de la page | 
| 337 | 118 | Patrice Nadeau | * Liste complète à http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en | 
| 338 | 1 | Patrice Nadeau | |
| 339 | 177 | Patrice Nadeau | > Des « smilley » non voulus peuvent apparaîtrent dans les wiki déjà en place. L'utilisation de *<notextile><notextile> </notextile></notextile>* seras alors nécessaire. | 
| 340 | 133 | Patrice Nadeau | |
| 341 | 130 | Patrice Nadeau | Étapes : | 
| 342 | # Installation sur le serveur : | ||
| 343 | 114 | Patrice Nadeau | <pre><code class="bash"> | 
| 344 | cd /srv/redmine/ | ||
| 345 | 206 | Patrice Nadeau | wget https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads/redmine_wiki_extensions-0.8.0.zip | 
| 346 | unzip redmine_wiki_extensions-0.8.0.zip -d plugins/ | ||
| 347 | 178 | Patrice Nadeau | rake redmine:plugins:migrate RAILS_ENV=production | 
| 348 | 1 | Patrice Nadeau | systemctl reload apache2.service | 
| 349 | 206 | Patrice Nadeau | rm -r redmine_wiki_extensions-0.8.0.zip | 
| 350 | 130 | Patrice Nadeau | </code></pre> | 
| 351 | 133 | Patrice Nadeau | # Activer le module dans le ou les projets voulus | 
| 352 | 99 | Patrice Nadeau | |
| 353 | 214 | Patrice Nadeau | ## Retrait d'un plug-in | 
| 354 | 162 | Patrice Nadeau | |
| 355 | <pre><code class="bash"> | ||
| 356 | cd /srv/redmine | ||
| 357 | rake redmine:plugins:migrate NAME=plugin_name VERSION=0 RAILS_ENV=production | ||
| 358 | rm -r plugins/plugin_name | ||
| 359 | rake db:migrate_plugins RAILS_ENV=production | ||
| 360 | </code></pre> | ||
| 361 | |||
| 362 | 214 | Patrice Nadeau | ## Mise à jour | 
| 363 | 1 | Patrice Nadeau | |
| 364 | 205 | Patrice Nadeau | > Version 3.3.3 -> 3.4.2 | 
| 365 | 101 | Patrice Nadeau | |
| 366 | 139 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins ET qu'il sont compatibles avec la version de Redmine à installer. | 
| 367 | 1 | Patrice Nadeau | |
| 368 | 101 | Patrice Nadeau | Disponible à http://www.redmine.org/projects/redmine/wiki/Download | 
| 369 | 1 | Patrice Nadeau | |
| 370 | 101 | Patrice Nadeau | Mise à jour de Redmine à partir d'une version stable | 
| 371 | > http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade | ||
| 372 | 1 | Patrice Nadeau | |
| 373 | 106 | Patrice Nadeau | # Arrêter Redmine | 
| 374 | # Renommer le répertoire actuel | ||
| 375 | 1 | Patrice Nadeau | <pre><code class="bash"> | 
| 376 | 101 | Patrice Nadeau | cd /srv/ | 
| 377 | 106 | Patrice Nadeau | mv redmine redmine.old | 
| 378 | 1 | Patrice Nadeau | </code></pre> | 
| 379 | 106 | Patrice Nadeau | # Télécharger la nouvelle version | 
| 380 | 1 | Patrice Nadeau | <pre><code class="bash"> | 
| 381 | 205 | Patrice Nadeau | wget http://www.redmine.org/releases/redmine-3.4.2.tar.gz | 
| 382 | 1 | Patrice Nadeau | </code></pre> | 
| 383 | 101 | Patrice Nadeau | # Décompresser le fichier | 
| 384 | 1 | Patrice Nadeau | <pre><code class="bash"> | 
| 385 | 205 | Patrice Nadeau | tar xvf redmine-3.4.2.tar.gz | 
| 386 | mv redmine-3.4.2 redmine | ||
| 387 | 41 | Patrice Nadeau | </code></pre> | 
| 388 | 101 | Patrice Nadeau | # Copier les anciens fichiers de configurations | 
| 389 | 41 | Patrice Nadeau | <pre><code class="bash"> | 
| 390 | 101 | Patrice Nadeau | cp redmine.old/config/configuration.yml redmine/config | 
| 391 | 108 | Patrice Nadeau | cp redmine.old/config/database.yml redmine/config | 
| 392 | cp -r redmine.old/files redmine | ||
| 393 | 156 | Patrice Nadeau | </code></pre> | 
| 394 | 157 | Patrice Nadeau | # Refaire la sécurité | 
| 395 | 155 | Patrice Nadeau | <pre><code class="bash"> | 
| 396 | chown -R root:root redmine | ||
| 397 | 1 | Patrice Nadeau | # Les commandes suivantes sont nécessaire seulement si Apache est utilisé | 
| 398 | 139 | Patrice Nadeau | # Le même owner que config.ru doit être utiliser pour plusieurs dossier | 
| 399 | 126 | Patrice Nadeau | chown wwwrun:www redmine/config.ru | 
| 400 | 108 | Patrice Nadeau | mkdir redmine/tmp/passenger | 
| 401 | chown -R wwwrun:www redmine/tmp | ||
| 402 | chmod 0777 redmine/public/plugin_assets | ||
| 403 | 154 | Patrice Nadeau | chmod -R 0777 redmine/files | 
| 404 | 1 | Patrice Nadeau | </code></pre> | 
| 405 | 101 | Patrice Nadeau | # Ne copier que les « plugins » qui ne sont pas fournis par la nouvelle version de Redmine | 
| 406 | <pre><code class="bash"> | ||
| 407 | 139 | Patrice Nadeau | cp -r redmine.old/plugins/* redmine/plugins | 
| 408 | 101 | Patrice Nadeau | </code></pre> | 
| 409 | # Installer les « gems » | ||
| 410 | <pre><code class="bash"> | ||
| 411 | 139 | Patrice Nadeau | cd redmine | 
| 412 | 204 | Patrice Nadeau | bundle.ruby2.1 install --without development test | 
| 413 | 94 | Patrice Nadeau | </code></pre> | 
| 414 | 1 | Patrice Nadeau | # Mise à jour (base de donnés, « plugins ») et ménage : | 
| 415 | 111 | Patrice Nadeau | <pre><code class="bash"> | 
| 416 | 204 | Patrice Nadeau | bundle.ruby2.1 exec rake generate_secret_token | 
| 417 | bundle.ruby2.1 exec rake db:migrate RAILS_ENV=production | ||
| 418 | bundle.ruby2.1 exec rake redmine:plugins:migrate RAILS_ENV=production | ||
| 419 | 1 | Patrice Nadeau | bundle.ruby2.1 exec rake tmp:cache:clear tmp:sessions:clear | 
| 420 | </code></pre> | ||
| 421 | 188 | Patrice Nadeau | # Remettre le logo (facultatif) | 
| 422 | 203 | Patrice Nadeau | <pre><code class="bash"> | 
| 423 | 1 | Patrice Nadeau | cd .. | 
| 424 | 194 | Patrice Nadeau | cp redmine.old/public/images/logo.png redmine/public/images/ | 
| 425 | 196 | Patrice Nadeau | cp redmine.old/app/views/layouts/base.html.erb redmine/app/views/layouts/ | 
| 426 | 194 | Patrice Nadeau | </code></pre> | 
| 427 | 211 | Patrice Nadeau | # Réinstaller le module « Passenger » (voir plus haut) | 
| 428 | 101 | Patrice Nadeau | # Relancer Redmine | 
| 429 | 158 | Patrice Nadeau | # Vérifier | 
| 430 | ## Administration | ||
| 431 | 198 | Patrice Nadeau | ### Informations | 
| 432 | ### Plugins | ||
| 433 | 158 | Patrice Nadeau | ### Projects | 
| 434 | ### Users | ||
| 435 | ### Roles & permissions | ||
| 436 | ## Essayer d'attacher un fichier à un projet | ||
| 437 | 159 | Patrice Nadeau | ## Essayer d’accéder au calendrier d'un projet | 
| 438 | 40 | Patrice Nadeau | |
| 439 | 214 | Patrice Nadeau | ## Copie de sécurité | 
| 440 | 40 | Patrice Nadeau | |
| 441 | 163 | Patrice Nadeau | [[Copie de sécurité]] | 
| 442 | |||
| 443 | 5 | Patrice Nadeau | |
| 444 | 39 | Patrice Nadeau | |
| 445 | 214 | Patrice Nadeau | ## Dépannage | 
| 446 | 1 | Patrice Nadeau | |
| 447 | 214 | Patrice Nadeau | ### Mot de passe perdu | 
| 448 | 1 | Patrice Nadeau | |
| 449 | Le mot de passe admin par défaut est en _hash Sha1_ : *da3174755c5e82a436b6c7ff87c873ee50d6654b* et est *admin.* | ||
| 450 | |||
| 451 | 214 | Patrice Nadeau | ### Le service tombe « DEAD » à chaque fois (webrick) | 
| 452 | 1 | Patrice Nadeau | |
| 453 | Effacer le fichier _/srv/redmine/tmp/pids/server.pid_. | 
