Projet

Général

Profil

8 » Historique » Version 12

Patrice Nadeau, 2016-01-11 19:56

1 1 Patrice Nadeau
h1. Drupal 8
2 2 Patrice Nadeau
3 4 Patrice Nadeau
> openSUSE Leap 42.1
4
5 7 Patrice Nadeau
h2. Pre-requis
6
7 11 Patrice Nadeau
h3. PHP OPcache
8
9
>Module facultatif
10
11
Installation
12
<pre><code class="bash">
13
zypper install php5-opcache
14
</code></pre>
15
16
Ajouter dans le fichier _/etc/php/apache2/php.ini_
17
<pre><code class="php">
18
extension=opcache.so
19
</code></pre>
20
21
Relire la configuration Apache
22
<pre><code class="bash">
23
systemctl reload apache2.service
24
</code></pre>
25
26 7 Patrice Nadeau
h3. MySQL/MariaDB
27
28 8 Patrice Nadeau
Choisir et noter les 3 items suivants :
29
* _drupal_db_ : nom voulu de la base de donnés de Drupal
30
* _drupal_user_ : nom voulu pour l’usager MySQL
31
* _drupal_password_ : mot de passe voulu pour l’usager MySQL
32
33
À partir du serveur :
34
> root est l’usager « root » de MySQL
35
36
<pre><code class="bash">
37
mysql -u root -p
38
</code></pre>
39
40
Inscrire les commandes SQL suivantes :
41
<pre><code class="sql">
42
create database drupal_db character set utf8;
43
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON drupal_db.* TO 'drupal_user'@'localhost' IDENTIFIED BY 'drupal_password';
44
COMMIT;
45
quit;
46
</code></pre>
47
48 7 Patrice Nadeau
h3. Apache
49
50 5 Patrice Nadeau
_/etc/apache2/vhosts.d/vhost.conf_
51
<pre><code class="bash">
52
<VirtualHost *:80>
53
#    Servername www.toto.com
54
    DocumentRoot /srv/www/htdocs/drupal2
55
    ServerAdmin toto@toto.com
56
    <Directory "/srv/www/htdocs/drupal2">
57
        Options Indexes ExecCGI FollowSymLinks
58
        AllowOverride All
59
        Require all granted
60
    </Directory>
61
</VirtualHost>
62
63
</code></pre>
64
65 3 Patrice Nadeau
h2. Installation
66 2 Patrice Nadeau
67
https://www.drupal.org/upgrade/migrate
68 1 Patrice Nadeau
69 12 Patrice Nadeau
> Une nouvelle installation de Drupal 8 doit être faite et ensuite une migration vers le nouveau site seras effectué.
70 4 Patrice Nadeau
71 12 Patrice Nadeau
Sur le serveur :
72 2 Patrice Nadeau
<pre><code class="bash">
73 1 Patrice Nadeau
# Téléchargement
74 2 Patrice Nadeau
cd /srv/www/htdocs
75
wget http://ftp.drupal.org/files/projects/drupal-8.0.2.tar.gz
76
tar -xvf drupal-8.0.2.tar.gz
77
mv drupal-8.0.2 drupal2
78 12 Patrice Nadeau
# Changement de la sécurité
79 2 Patrice Nadeau
chown wwwrun:www -R drupal2
80
</code></pre>
81 4 Patrice Nadeau
82 9 Patrice Nadeau
À partir d'un navigateur internet, allez au http://serveur.tld/drupal2