Wiki » Historique » Version 173
  Patrice Nadeau, 2015-06-28 09:15 
  
| 1 | 13 | Patrice Nadeau | h1. 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 | * http://bitnami.com/stack/redmine  | 
||
| 13 | * http://www.turnkeylinux.org/redmine  | 
||
| 14 | |||
| 15 | 121 | Patrice Nadeau | {{lastupdated_at}} {{lastupdated_by}} | 
| 16 | |||
| 17 | 94 | Patrice Nadeau | ---  | 
| 18 | 31 | Patrice Nadeau | |
| 19 | 94 | Patrice Nadeau | {{toc}} | 
| 20 | |||
| 21 | h2. Installation  | 
||
| 22 | |||
| 23 | 32 | Patrice Nadeau | Ce guide documente une installation GNU/Linux avec les version suivantes :  | 
| 24 | * openSUSE 13.1  | 
||
| 25 | 151 | Patrice Nadeau | * Redmine 3.0.1  | 
| 26 | 32 | Patrice Nadeau | |
| 27 | 94 | Patrice Nadeau | h3. Prérequis  | 
| 28 | 1 | Patrice Nadeau | |
| 29 | Un serveur *LAMP(Linux, Apache, MySQL, PHP)* [[guides_opensuse:|openSUSE]] *fonctionnel*.  | 
||
| 30 | 56 | Patrice Nadeau | |
| 31 | 44 | Patrice Nadeau | Les logiciels supplémentaires suivants :  | 
| 32 | 50 | Patrice Nadeau | |
| 33 | <pre><code class="bash">  | 
||
| 34 | 58 | Patrice Nadeau | zypper install libmysqlclient-devel ruby-2.0 ruby20-devel rubygem-bundler rubygem-mysql2 rubygem-pg ImageMagick ImageMagick-devel git gcc make  | 
| 35 | 56 | Patrice Nadeau | </code></pre>  | 
| 36 | 32 | Patrice Nadeau | |
| 37 | 94 | Patrice Nadeau | h3. MySQL  | 
| 38 | 32 | Patrice Nadeau | |
| 39 | Création de la base de donnés.  | 
||
| 40 | Substituer les items suivants à votre choix :  | 
||
| 41 | * 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 | Lancer MySQL :  | 
||
| 46 | <pre><code class="bash">  | 
||
| 47 | mysql -u root -p  | 
||
| 48 | </code></pre>  | 
||
| 49 | |||
| 50 | 1 | Patrice Nadeau | Commandes MySQL :  | 
| 51 | 32 | Patrice Nadeau | <pre><code class="sql">  | 
| 52 | create database db character set utf8;  | 
||
| 53 | create user 'redmine'@'localhost' identified by 'password';  | 
||
| 54 | grant all privileges on db.* to 'redmine'@'localhost';  | 
||
| 55 | commit;  | 
||
| 56 | quit;  | 
||
| 57 | </code></pre>  | 
||
| 58 | |||
| 59 | 94 | Patrice Nadeau | h3. Redmine  | 
| 60 | 13 | Patrice Nadeau | |
| 61 | 59 | Patrice Nadeau | L’installation sera faite dans _\srv\redmine_ (exemple avec la version 2.5)  | 
| 62 | 33 | Patrice Nadeau | <pre><code class="bash">  | 
| 63 | cd /srv/  | 
||
| 64 | 59 | Patrice Nadeau | svn co http://svn.redmine.org/redmine/branches/2.5-stable redmine  | 
| 65 | 33 | Patrice Nadeau | cd redmine  | 
| 66 | cp config/database.yml.example config/database.yml  | 
||
| 67 | cp config/configuration.yml.example config/configuration.yml  | 
||
| 68 | 1 | Patrice Nadeau | mkdir public/plugin_assets  | 
| 69 | 33 | Patrice Nadeau | </code></pre>  | 
| 70 | |||
| 71 | Si un usager MySQL autre que _root_ ou mot de passe diffèrent est utilisé :  | 
||
| 72 | Éditer le fichier *config/database.yml*, section *Production* et modifier les lignes :  | 
||
| 73 | * *username*  | 
||
| 74 | * *password*  | 
||
| 75 | |||
| 76 | Éditer le fichier _config/configuration.yml_ et modifier la configuration SMTP.  | 
||
| 77 | 1 | Patrice Nadeau | |
| 78 | 94 | Patrice Nadeau | h3. Ruby  | 
| 79 | 33 | Patrice Nadeau | |
| 80 | 34 | Patrice Nadeau | Installation des gems de Ruby  | 
| 81 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 82 | 34 | Patrice Nadeau | cd redmine  | 
| 83 | gem install bundler  | 
||
| 84 | gem install activerecord-mysql2-adapter  | 
||
| 85 | bundle install --without development test  | 
||
| 86 | 1 | Patrice Nadeau | </code></pre>  | 
| 87 | |||
| 88 | 94 | Patrice Nadeau | h3. Initialisation  | 
| 89 | 1 | Patrice Nadeau | |
| 90 | 34 | Patrice Nadeau | Création de la cryptographie, de la structure et des donnés de base :  | 
| 91 | <pre><code class="bash">  | 
||
| 92 | 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 | </code></pre>  | 
||
| 97 | |||
| 98 | 94 | Patrice Nadeau | h3. Serveur web  | 
| 99 | 69 | Patrice Nadeau | |
| 100 | 70 | Patrice Nadeau | Redmine peux être utiliser avec le serveur inclus _webrick_ (port 3000) ou _Apache_ (port 80).  | 
| 101 | 1 | Patrice Nadeau | |
| 102 | 94 | Patrice Nadeau | h4. Webrick  | 
| 103 | 69 | Patrice Nadeau | |
| 104 | 60 | Patrice Nadeau | Ouvrir dans le pare-feu le port TCP 3000 :  | 
| 105 | <pre><code class="bash">  | 
||
| 106 | yast firewall services add tcpport=3000 zone=EXT  | 
||
| 107 | 34 | Patrice Nadeau | </code></pre>  | 
| 108 | 1 | Patrice Nadeau | |
| 109 | 69 | Patrice Nadeau | Lancer le serveur web  | 
| 110 | 34 | Patrice Nadeau | <pre><code class="bash">  | 
| 111 | 1 | Patrice Nadeau | cd /srv/redmine  | 
| 112 | 34 | Patrice Nadeau | ruby script/rails server webrick -e production  | 
| 113 | </code></pre>  | 
||
| 114 | 16 | Patrice Nadeau | |
| 115 | 94 | Patrice Nadeau | h5. Transformation en daemon  | 
| 116 | 35 | Patrice Nadeau | |
| 117 | Le script original vient de http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_openSUSE  | 
||
| 118 | 1 | Patrice Nadeau | Copier le script dans le fichier */etc/init.d/redmine*  | 
| 119 | 35 | Patrice Nadeau | |
| 120 | Le modifier de la manière suivante :  | 
||
| 121 | * REDMINE_BIN=/srv/redmine/current/script/rails  | 
||
| 122 | * REDMINE_USER=user  | 
||
| 123 | * Corriger le «typo» à la ligne 73 : $REDMI-NE_BIN -> $REDMINE_BIN  | 
||
| 124 | * Dans la section stop, après la ligne killproc, ajouter *rm $PIDFILE*  | 
||
| 125 | |||
| 126 | Rendre le fichier exécutable, l’ajouter aux services SUSE et l’exécuter au démarrage :  | 
||
| 127 | <pre><code class="bash">  | 
||
| 128 | chmod 0755 /etc/init.d/redmine  | 
||
| 129 | cp -s /etc/init.d/redmine /usr/bin/rcredmine  | 
||
| 130 | chkconfig -a redmine  | 
||
| 131 | </code></pre>  | 
||
| 132 | 1 | Patrice Nadeau | |
| 133 | 94 | Patrice Nadeau | h4. Apache  | 
| 134 | 45 | Patrice Nadeau | |
| 135 | > En test, voir #23  | 
||
| 136 | |||
| 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 | Les informations viennent de : http://www.redmine.org/projects/redmine/wiki/Howto_add_a_logo_to_your_Redmine_banner  | 
||
| 241 | |||
| 242 | Copier le logo dans _/srv/redmine/public/images/logo.png_  | 
||
| 243 | 1 | Patrice Nadeau | |
| 244 | 37 | Patrice Nadeau | Modifier le fichier _/srv/redmine/app/views/layout/base.rhtml.erb_  | 
| 245 | * Ajouter la ligne  | 
||
| 246 | 1 | Patrice Nadeau | <pre><code class="ruby">  | 
| 247 | 37 | Patrice Nadeau | <img src="<%= Redmine::Utils.relative_url_root %>/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/>  | 
| 248 | </code></pre>  | 
||
| 249 | * Si on ne veux plus afficher le titre, mettre en commentaire :  | 
||
| 250 | 1 | Patrice Nadeau | <pre><code class="ruby">  | 
| 251 | 37 | Patrice Nadeau | <!--<h1><%= page_header_title %></h1>-->  | 
| 252 | </code></pre>  | 
||
| 253 | |||
| 254 | Redémarrer Redmine  | 
||
| 255 | 72 | Patrice Nadeau | |
| 256 | 1 | Patrice Nadeau | h3. Plugins  | 
| 257 | 172 | Patrice Nadeau | |
| 258 | 173 | Patrice Nadeau | Modules supplémentaires pour ajouter des fonctionnalités à Redmine.  | 
| 259 | |||
| 260 | > Source de problème lors de mise à jour si incompatibilité.  | 
||
| 261 | 1 | Patrice Nadeau | |
| 262 | 94 | Patrice Nadeau | h4. Redmine Rouge  | 
| 263 | 1 | Patrice Nadeau | |
| 264 | 4 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source.  | 
| 265 | 13 | Patrice Nadeau | |
| 266 | 1 | Patrice Nadeau | "Langage supporté":http://rouge.jayferd.us/demo  | 
| 267 | |||
| 268 | https://github.com/ngyuki/redmine_rouge  | 
||
| 269 | |||
| 270 | <pre>  | 
||
| 271 | <code class="bash">  | 
||
| 272 | cd /srv/redmine/plugins  | 
||
| 273 | git clone https://github.com/ngyuki/redmine_rouge.git  | 
||
| 274 | cd ..  | 
||
| 275 | bundle install  | 
||
| 276 | </code>  | 
||
| 277 | 74 | Patrice Nadeau | </pre>  | 
| 278 | |||
| 279 | Relancer redmine  | 
||
| 280 | 5 | Patrice Nadeau | |
| 281 | 94 | Patrice Nadeau | h4. Code Highlight  | 
| 282 | 9 | Patrice Nadeau | |
| 283 | 10 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button  | 
| 284 | 9 | Patrice Nadeau | |
| 285 | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage.  | 
||
| 286 | |||
| 287 | 1 | Patrice Nadeau | Installation  | 
| 288 | <pre><code class="bash">  | 
||
| 289 | 10 | Patrice Nadeau | cd /srv/redmine/plugins  | 
| 290 | git clone https://github.com/mediatainment/redmine_codebutton.git  | 
||
| 291 | cd ..  | 
||
| 292 | rake redmine:plugins  | 
||
| 293 | 9 | Patrice Nadeau | rake redmine:plugins:migrate RAILS_ENV=production  | 
| 294 | 10 | Patrice Nadeau | # Relancer Redmine  | 
| 295 | 1 | Patrice Nadeau | rcredmine restart  | 
| 296 | 95 | Patrice Nadeau | </code></pre>  | 
| 297 | |||
| 298 | Ajout des langages supplémentaires supportées par le « plug-in » _Redmine Rouge_. Voir "ici":https://github.com/mediatainment/redmine_codebutton/issues/2  | 
||
| 299 | 96 | Patrice Nadeau | Éditer le fichier */srv/redmine/plugins/redmine_codebutton/assets/javascripts/wiki-codehighlight.js*  | 
| 300 | 95 | Patrice Nadeau | * Ajouter les langages voulus dans la variable *codeRayLanguages*  | 
| 301 | |||
| 302 | Relancer Apache  | 
||
| 303 | <pre><code class="bash">  | 
||
| 304 | systemctl reload apache2.service  | 
||
| 305 | 1 | Patrice Nadeau | </code></pre>  | 
| 306 | |||
| 307 | 97 | Patrice Nadeau | h4. Like Button  | 
| 308 | |||
| 309 | Bouton pour Facebook, Google+ et Twitter  | 
||
| 310 | |||
| 311 | 98 | Patrice Nadeau | http://www.redmine.org/plugins/like  | 
| 312 | 97 | Patrice Nadeau | |
| 313 | 98 | Patrice Nadeau | Installation  | 
| 314 | 1 | Patrice Nadeau | |
| 315 | 98 | Patrice Nadeau | <pre><code class="bash">  | 
| 316 | cd /srv/redmine/plugins  | 
||
| 317 | svn svn co http://svn.s-andy.com/like-button like  | 
||
| 318 | </code></pre>  | 
||
| 319 | 100 | Patrice Nadeau | |
| 320 | 98 | Patrice Nadeau | Relancer Redmine  | 
| 321 | 97 | Patrice Nadeau | |
| 322 | 135 | Patrice Nadeau | h4. Subscription  | 
| 323 | |||
| 324 | Permet de s'abonner et de recevoir les changements fait sur un projet  | 
||
| 325 | |||
| 326 | 152 | Patrice Nadeau | http://projects.andriylesyuk.com/project/redmine/subscription  | 
| 327 | |||
| 328 | 135 | Patrice Nadeau | Les événements suivants active une notification  | 
| 329 | * Un nouveau « News »  | 
||
| 330 | * La fermeture d'une version d'un projet  | 
||
| 331 | * Un nouveau fichier téléchargé  | 
||
| 332 | * Un nouvel « issue »  | 
||
| 333 | * Une nouvelle page Wiki  | 
||
| 334 | * Un nouveau « commit »  | 
||
| 335 | * Un nouveau forum  | 
||
| 336 | |||
| 337 | 138 | Patrice Nadeau | Installation sur le serveur :  | 
| 338 | 137 | Patrice Nadeau | |
| 339 | 135 | Patrice Nadeau | <pre><code class="bash">  | 
| 340 | 136 | Patrice Nadeau | # Se placer dans le dossier de Remdine  | 
| 341 | 1 | Patrice Nadeau | cd /srv/redmine  | 
| 342 | 136 | Patrice Nadeau | # Telecharger le plugin  | 
| 343 | wget http://projects.andriylesyuk.com/attachments/download/613/subscription-0.0.1b.tar.bz2  | 
||
| 344 | tar -xvf subscription-0.0.1b.tar.bz2  | 
||
| 345 | mv subscription-0.0.1b.tar.bz2 subscription  | 
||
| 346 | # Lce copier avec les autres plugins  | 
||
| 347 | mv subscription/ plugins/  | 
||
| 348 | # L'inclure dans Redmine  | 
||
| 349 | rake redmine:plugins:migrate RAILS_ENV=production  | 
||
| 350 | # Reload de Apache  | 
||
| 351 | systemctl reload apache2.service  | 
||
| 352 | 1 | Patrice Nadeau | </code></pre>  | 
| 353 | 137 | Patrice Nadeau | |
| 354 | Activer le module dans chacun des projet voulus.  | 
||
| 355 | 135 | Patrice Nadeau | |
| 356 | 113 | Patrice Nadeau | h4. Wiki Extensions  | 
| 357 | |||
| 358 | 144 | Patrice Nadeau | Voir #47  | 
| 359 | |||
| 360 | 122 | Patrice Nadeau | Ajoute des macros au Wiki de Redmine  | 
| 361 | 115 | Patrice Nadeau | > La dernière version est disponible à https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads  | 
| 362 | 114 | Patrice Nadeau | |
| 363 | 118 | Patrice Nadeau | Parmi les macros ajoutées:  | 
| 364 | 122 | Patrice Nadeau | >Liste complète à http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en  | 
| 365 | 119 | Patrice Nadeau | * Emoticons : Un bouton apparait pour ajouter des « smilley » qui seront afficher en graphique  | 
| 366 | 118 | Patrice Nadeau | * !{{lastupdated_by}} : affiche le nom de la dernière personne à avoir modifier la page | 
| 367 | 128 | Patrice Nadeau | * !{{lastupdated_at}} : affiche la date de la dernière modification de la page | 
| 368 | 118 | Patrice Nadeau | |
| 369 | 134 | Patrice Nadeau | > Des « smilley » non voulus peuvent apparaitre dans les wiki déjà en place. L'utilisation de *<notextile><notextile> </notextile></notextile>* seras alors nécessaire.  | 
| 370 | 133 | Patrice Nadeau | |
| 371 | 130 | Patrice Nadeau | Étapes :  | 
| 372 | # Installation sur le serveur :  | 
||
| 373 | 114 | Patrice Nadeau | <pre><code class="bash">  | 
| 374 | cd /srv/redmine/  | 
||
| 375 | 145 | Patrice Nadeau | wget https://bitbucket.org/haru_iida/redmine_wiki_extensions/downloads/redmine_wiki_extensions-0.7.0.zip  | 
| 376 | unzip redmine_wiki_extensions-0.7.0.zip -d plugins/  | 
||
| 377 | 129 | Patrice Nadeau | rake db:migrate_plugins RAILS_ENV=production  | 
| 378 | 1 | Patrice Nadeau | systemctl reload apache2.service  | 
| 379 | 130 | Patrice Nadeau | </code></pre>  | 
| 380 | 133 | Patrice Nadeau | # Activer le module dans le ou les projets voulus  | 
| 381 | 99 | Patrice Nadeau | |
| 382 | 162 | Patrice Nadeau | h2. Retrait d'un plug-in  | 
| 383 | |||
| 384 | <pre><code class="bash">  | 
||
| 385 | cd /srv/redmine  | 
||
| 386 | rake redmine:plugins:migrate NAME=plugin_name VERSION=0 RAILS_ENV=production  | 
||
| 387 | rm -r plugins/plugin_name  | 
||
| 388 | rake db:migrate_plugins RAILS_ENV=production  | 
||
| 389 | </code></pre>  | 
||
| 390 | |||
| 391 | 94 | Patrice Nadeau | h2. Mise à jour  | 
| 392 | 1 | Patrice Nadeau | |
| 393 | 167 | Patrice Nadeau | > Version 3.0.3  | 
| 394 | 101 | Patrice Nadeau | |
| 395 | 139 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins ET qu'il sont compatibles avec la version de Redmine à installer.  | 
| 396 | 1 | Patrice Nadeau | |
| 397 | 101 | Patrice Nadeau | Disponible à http://www.redmine.org/projects/redmine/wiki/Download  | 
| 398 | 1 | Patrice Nadeau | |
| 399 | 101 | Patrice Nadeau | Mise à jour de Redmine à partir d'une version stable  | 
| 400 | > http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade  | 
||
| 401 | 1 | Patrice Nadeau | |
| 402 | 106 | Patrice Nadeau | # Arrêter Redmine  | 
| 403 | # Renommer le répertoire actuel  | 
||
| 404 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 405 | 101 | Patrice Nadeau | cd /srv/  | 
| 406 | 106 | Patrice Nadeau | mv redmine redmine.old  | 
| 407 | 1 | Patrice Nadeau | </code></pre>  | 
| 408 | 106 | Patrice Nadeau | # Télécharger la nouvelle version  | 
| 409 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 410 | 167 | Patrice Nadeau | wget http://www.redmine.org/releases/redmine-3.0.3.tar.gz  | 
| 411 | 1 | Patrice Nadeau | </code></pre>  | 
| 412 | 101 | Patrice Nadeau | # Décompresser le fichier  | 
| 413 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 414 | 167 | Patrice Nadeau | tar xvf redmine-3.0.3.tar.gz  | 
| 415 | mv redmine-3.0.3 redmine  | 
||
| 416 | 41 | Patrice Nadeau | </code></pre>  | 
| 417 | 101 | Patrice Nadeau | # Copier les anciens fichiers de configurations  | 
| 418 | 41 | Patrice Nadeau | <pre><code class="bash">  | 
| 419 | 101 | Patrice Nadeau | cp redmine.old/config/configuration.yml redmine/config  | 
| 420 | 108 | Patrice Nadeau | cp redmine.old/config/database.yml redmine/config  | 
| 421 | cp -r redmine.old/files redmine  | 
||
| 422 | 156 | Patrice Nadeau | </code></pre>  | 
| 423 | 157 | Patrice Nadeau | # Refaire la sécurité  | 
| 424 | 155 | Patrice Nadeau | <pre><code class="bash">  | 
| 425 | chown -R root:root redmine  | 
||
| 426 | 1 | Patrice Nadeau | # Les commandes suivantes sont nécessaire seulement si Apache est utilisé  | 
| 427 | 139 | Patrice Nadeau | # Le même owner que config.ru doit être utiliser pour plusieurs dossier  | 
| 428 | 126 | Patrice Nadeau | chown wwwrun:www redmine/config.ru  | 
| 429 | 127 | Patrice Nadeau | chown -R wwwrun:www redmine/tmp  | 
| 430 | 108 | Patrice Nadeau | mkdir redmine/tmp/passenger  | 
| 431 | chown -R wwwrun:www redmine/tmp  | 
||
| 432 | chmod 0777 redmine/public/plugin_assets  | 
||
| 433 | 154 | Patrice Nadeau | chmod -R 0777 redmine/files  | 
| 434 | 1 | Patrice Nadeau | </code></pre>  | 
| 435 | 101 | Patrice Nadeau | # Ne copier que les « plugins » qui ne sont pas fournis par la nouvelle version de Redmine  | 
| 436 | <pre><code class="bash">  | 
||
| 437 | 139 | Patrice Nadeau | cp -r redmine.old/plugins/* redmine/plugins  | 
| 438 | 101 | Patrice Nadeau | </code></pre>  | 
| 439 | # Installer les « gems »  | 
||
| 440 | <pre><code class="bash">  | 
||
| 441 | 139 | Patrice Nadeau | cd redmine  | 
| 442 | 87 | Patrice Nadeau | bundle install --without development test  | 
| 443 | 101 | Patrice Nadeau | </code></pre>  | 
| 444 | 94 | Patrice Nadeau | # Mise à jour (base de donnés, « plugins ») et ménage :  | 
| 445 | 111 | Patrice Nadeau | <pre><code class="bash">  | 
| 446 | 1 | Patrice Nadeau | bundle exec rake generate_secret_token  | 
| 447 | 111 | Patrice Nadeau | bundle exec rake db:migrate RAILS_ENV=production  | 
| 448 | bundle exec rake redmine:plugins:migrate RAILS_ENV=production  | 
||
| 449 | 101 | Patrice Nadeau | bundle exec rake tmp:cache:clear tmp:sessions:clear  | 
| 450 | 40 | Patrice Nadeau | </code></pre>  | 
| 451 | 101 | Patrice Nadeau | # Relancer Redmine  | 
| 452 | 158 | Patrice Nadeau | # Vérifier  | 
| 453 | ## Administration  | 
||
| 454 | ### Projects  | 
||
| 455 | ### Users  | 
||
| 456 | ### Roles & permissions  | 
||
| 457 | ## Essayer d'attacher un fichier à un projet  | 
||
| 458 | 159 | Patrice Nadeau | ## Essayer d’accéder au calendrier d'un projet  | 
| 459 | 40 | Patrice Nadeau | |
| 460 | h2. Copie de sécurité  | 
||
| 461 | |||
| 462 | 163 | Patrice Nadeau | [[Copie de sécurité]]  | 
| 463 | |||
| 464 | 5 | Patrice Nadeau | |
| 465 | 39 | Patrice Nadeau | |
| 466 | 1 | Patrice Nadeau | h2. Dépannage  | 
| 467 | |||
| 468 | h3. Mot de passe perdu  | 
||
| 469 | |||
| 470 | Le mot de passe admin par défaut est en _hash Sha1_ : *da3174755c5e82a436b6c7ff87c873ee50d6654b* et est *admin.*  | 
||
| 471 | |||
| 472 | h3. Le service tombe « DEAD » à chaque fois (webrick)  | 
||
| 473 | |||
| 474 | Effacer le fichier _/srv/redmine/tmp/pids/server.pid_.  |