Changes to "Installation" between 2013-07-28 11:32:29 and 2013-07-28 11:33:29

35
36
37
38
39
40
41

42
43
44
45
46
47
48
49
50
51
52

53
54
55

56
57
58
59

60
61
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65







+











+



+




+


<h3>Optionnel : mettre à disposition une instance de Garradin en ligne</h3>

Le paquet Debian de Garradin peut également être utilisé en version en-ligne, pour cela il suffit de suivre cet exemple pour Apache2 (paquet apache2-mpm-itk) :

  *  Créer un répertoire /var/www/garradin
  *  Créer un nouveau virtual host qui pointe sur ce répertoire, par exemple garradin.example.net, comme suit :

<pre>
  <VirtualHost garradin.example.net:80>
  AssignUserID www www
  ServerName garradin.example.net
  DocumentRoot /var/www/garradin
  
  RewriteEngine On
  RewriteCond %{REQUEST_URI} !/cache/static
  RewriteRule (.*) /usr/share/garradin/www/$1 [QSA,L]

  ErrorDocument 404 /index.php
  </VirtualHost>
</pre>

  *  Créer un fichier texte /var/www/garradin/config.local.php comme suit :

<pre>
  <?php
  define('GARRADIN_DATA_ROOT', __DIR__);
  define('WWW_URI', 'http://garradin.example.net/');
  ?>
</pre>

  *  Redémarrer le serveur web