Projet

Général

Profil

8 » Historique » Version 10

Patrice Nadeau, 2016-01-11 19:55

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
h3. MySQL/MariaDB
8
9 8 Patrice Nadeau
Choisir et noter les 3 items suivants :
10
* _drupal_db_ : nom voulu de la base de donnés de Drupal
11
* _drupal_user_ : nom voulu pour l’usager MySQL
12
* _drupal_password_ : mot de passe voulu pour l’usager MySQL
13
14
À partir du serveur :
15
> root est l’usager « root » de MySQL
16
17
<pre><code class="bash">
18
mysql -u root -p
19
</code></pre>
20
21
Inscrire les commandes SQL suivantes :
22
<pre><code class="sql">
23
create database drupal_db character set utf8;
24
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';
25
COMMIT;
26
quit;
27
</code></pre>
28
29 7 Patrice Nadeau
h3. Apache
30
31 5 Patrice Nadeau
_/etc/apache2/vhosts.d/vhost.conf_
32
<pre><code class="bash">
33
<VirtualHost *:80>
34
#    Servername www.toto.com
35
    DocumentRoot /srv/www/htdocs/drupal2
36
    ServerAdmin toto@toto.com
37
    <Directory "/srv/www/htdocs/drupal2">
38
        Options Indexes ExecCGI FollowSymLinks
39
        AllowOverride All
40
        Require all granted
41
    </Directory>
42
</VirtualHost>
43
44
</code></pre>
45
46 3 Patrice Nadeau
h2. Installation
47 2 Patrice Nadeau
48
https://www.drupal.org/upgrade/migrate
49 1 Patrice Nadeau
50 2 Patrice Nadeau
Une nouvelle installation de Drupal 8 doit être faite et ensuite une migration vers le nouveau site seras effectué.
51
52 3 Patrice Nadeau
h3. Drupal 8
53 2 Patrice Nadeau
54 4 Patrice Nadeau
h4. Sur le serveur
55
56 2 Patrice Nadeau
<pre><code class="bash">
57
# Téléchargement
58
cd /srv/www/htdocs
59
wget http://ftp.drupal.org/files/projects/drupal-8.0.2.tar.gz
60
tar -xvf drupal-8.0.2.tar.gz
61
mv drupal-8.0.2 drupal2
62
# changement de la securite
63
chown wwwrun:www -R drupal2
64
</code></pre>
65 4 Patrice Nadeau
66 9 Patrice Nadeau
À partir d'un navigateur internet, allez au http://serveur.tld/drupal2