From 64bd2c68d9a44ffc6c644349e46b9937b6c00994 Mon Sep 17 00:00:00 2001 From: lpoujol Date: Fri, 11 Jan 2019 14:15:58 +0100 Subject: [PATCH] =?UTF-8?q?Compl=C3=A9ments=20(Pr=C3=A9-requis=20&=20Insta?= =?UTF-8?q?llation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoDrupal.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/HowtoDrupal.md b/HowtoDrupal.md index 27418d37..3a3036b1 100644 --- a/HowtoDrupal.md +++ b/HowtoDrupal.md @@ -7,9 +7,50 @@ title: Howto Drupal [Drupal](https://www.drupal.org/) est un CMS libre écrit en PHP. -## Install +## Pré-requis + +* Un serveur web (Apache/Nginx/...) +* PHP 5.5+ +* Une base de donnée (MySQL/Mariadb 5.5+, PostgreSQL 9.1+) + +Pour plus de détails, voir [la documentation de Drupal](https://www.drupal.org/docs/user_guide/en/install-requirements.html) + +### Apache + +Drupal est livré avec des fichiers `.htaccess` qui utilisent un nombre variés de directives. +La configuration Apache doit donc contenir au minimum : + +~~~{.apache} +AllowOverride AuthConfig Limit FileInfo Indexes Options=Indexes,MultiViews,ExecCGI,Includes +~~~ + + +### PHP + +Certains ajustements sont nécessaires + +#### Web ( FPM / libapache2-mod-php ) + +*TODO?* + +#### CLI + +C'est surtout pour `composer` et `drush` qui nécessitent : + +* (composer) Le non blocage de la fonction `putenv()` +* (composer) Autoriser l'ouverture d'url (allow_url_fopen +* (drush) Aucune fonction désactivée (ie: disable_functions vide) sinon drush refuse de fonctionner.... + +## Installation + +Il existe [plusieurs méthodes pour installer Drupal](https://www.drupal.org/docs/8/install/step-1-get-the-code). Mais la méthode d'amorcer un nouveau site/projet avec composer. + +Ainsi, une installation par défaut va se faire avec la commande suivante va créer une nouvelle installation et récupérer toutes les dépendances avec composer. + +~~~ +$ composer create-project drupal-composer/drupal-project:8.x-dev foo_project --stability dev --no-interaction +~~~ -TODO ## Optimisation @@ -28,4 +69,6 @@ Règle mod_security de protection (théorique) ~~~ SecRule ARGS_GET_NAMES|ARGS_POST_NAMES|REQUEST_COOKIES_NAMES "^#" "t:none,log,deny,msg:'CVE-2018-7600/Drupal-SA-CORE-2018-002 -- Deny # in (cookie|query|post) names',id:300000001" -~~~ \ No newline at end of file +~~~ + +## \ No newline at end of file