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