@ -112,13 +112,18 @@ only a specific database. Please refer to the MySQL or MariaDB documentation in
<li>Enable the "rewrite" module in Apache (on the command line, run "<i>sudo a2enmod rewrite</i>")</li>
<li>Configure the Apache's VirtualHost for your Chamilo to include the following block, which will allow .htaccess files within Chamilo to be interpreted</li>
</ul>
For Apache <=2.2:
For Apache <=2.2 (where /var/www/chamilo should be replaced by the path to your Chamilo install):
<pre>
<Directory />
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/chamilo/>
AllowOverride All
Order allow,deny
allow from all
</Directory>
</pre>
and for Apache >=2.4:
<pre>
@ -126,6 +131,10 @@ only a specific database. Please refer to the MySQL or MariaDB documentation in
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/chamilo/>
AllowOverride All
Require all granted
</Directory>
</pre>
<br/>
Once configured (and maybe this has already been done by your hosting provider), you can simply restart the web server to enable the change.
<li>Activer le module "rewrite" d'Apache (en ligne de commande, faites simplement un "<i>sudo a2enmod rewrite</i>")</li>
<li>Configurer le VirtualHost d'Apache pour qu'il inclue le bloc suivant, ce qui permettra l'interprétation des fichiers .htaccess</li>
</ul>
Pour Apache <=2.2:
Pour Apache <=2.2 (remplacez /var/www/chamilo par le chemin vers votre répertoire de Chamilo):
<pre>
<Directory />
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/chamilo/>
AllowOverride All
Order allow,deny
allow from all
</Directory>
</pre>
et pour Apache >=2.4:
<pre>
et pour Apache >=2.4:
<pre>
<Directory />
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/chamilo/>
AllowOverride All
Require all granted
</Directory>
</pre>
<br/>
Une fois configurée cette partie (qui est peut-être déjà mise en place par votre fournisseur d'hébergement), il suffit de redémarrer le serveur web pour activer la modification.