5. **Configurer Apache** : - Créez un fichier de configuration pour Moodle dans Apache : ```bash sudo nano /etc/apache2/sites-available/moodle.conf ``` - Ajoutez les lignes suivantes : ```apache ServerAdmin admin@example.com DocumentRoot /var/www/html/moodle ServerName example.com Options +FollowSymlinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Require all denied ``` - Activez le site et redémarrez Apache : ```bash sudo a2ensite moodle.conf sudo systemctl restart apache2 ```