nethserver_201_cahier_03_mediawiki
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
nethserver_201_cahier_03_mediawiki [2019-08-15 01:07] – michelandre | nethserver_201_cahier_03_mediawiki [2025-01-12 19:30] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | \\ | ||
+ | [[cours_nethserver_101|{{ Images_Cahier-201-03-000.png? | ||
+ | \\ | ||
+ | ====== Description générale ====== | ||
+ | ===== Description générale ===== | ||
+ | |||
+ | Ce document décrit l' | ||
+ | |||
+ | Ce document utilise le Serveur NethServer du [[nethserver_101_cahier_03_creation_un_serveur_virtuel|Cahier-03]]: | ||
+ | |||
+ | ===== But de ce cahier ===== | ||
+ | |||
+ | {{ Images_Cahier-201-03-004.png? | ||
+ | \\ | ||
+ | |||
+ | ===== MediaWiki ===== | ||
+ | |||
+ | // | ||
+ | |||
+ | MediaWiki est un moteur de wiki pour le Web. Il est utilisé par l’ensemble des projets de la //Wikimedia Foundation//, | ||
+ | |||
+ | MediaWiki est écrit en PHP et peut aussi bien fonctionner avec le système de gestion de base de données // | ||
+ | |||
+ | ===== Document de référence ===== | ||
+ | |||
+ | Working with MediaWiki par Yaron Koren ©2012 by Yaron Koren. [[http:// | ||
+ | |||
+ | ===== Cours NethServer-101 ===== | ||
+ | |||
+ | Le //Cours NethServer-101//, | ||
+ | |||
+ | - [[nethserver_101_cahier_01_linux|Cahier-101-01]]: | ||
+ | - [[nethserver_101_cahier_02_installations_configurations_logiciels_prerequis|Cahier-101-02]]: | ||
+ | - [[nethserver_101_cahier_03_creation_un_serveur_virtuel|Cahier-101-03]]: | ||
+ | - [[nethserver_101_cahier_04_local_certificat_let_encrypt|Cahier-101-04]]: | ||
+ | - [[nethserver_101_cahier_05_vdsl_fqdn_internet_et_nethserver|Cahier-101-05]]: | ||
+ | // | ||
+ | - [[nethserver_101_cahier_06_nethserver_wordPress|Cahier-101-06]]: | ||
+ | - [[nethserver_101_cahier_07_nethserver_wordPress_wordfence|Cahier-101-07]]: | ||
+ | - [[nethserver_101_cahier_08_woocommerce_paypal_stripe|Cahier-101-08]]: | ||
+ | - [[nethserver_101_cahier_09_duplicator_migration|Cahier-101-09]]: | ||
+ | - [[nethserver_101_cahier_10_mandataire_inverse|Cahier-101-10]]: | ||
+ | - [[nethserver_101_cahier_11_nethserver_backuppc|Cahier-101-11]]: | ||
+ | |||
+ | ==== Cours NethServer-201 ==== | ||
+ | |||
+ | Le //Cours NethServer-201// | ||
+ | |||
+ | - [[nethserver_201_cahier_01_nethserver_et_dolibarr|Cahier-201-01]]: | ||
+ | - [[nethserver_201_cahier_02_odoo_12|Cahier-201-02]]: | ||
+ | - [[nethserver_201_cahier_03_mediawiki|Cahier-201-03]]: | ||
+ | - [[nethserver_201_cahier_04_dokuwiki|Cahier-201-04]]: | ||
+ | - [[nethserver_201_cahier_05_moodle|Cahier-201-05]]: | ||
+ | - [[nethserver_201_cahier_06_proxmox|Cahier-201-06]]: | ||
+ | - [[nethserver_201_cahier_07_flectra|Cahier-201-07]]: | ||
+ | - [[nethserver_201_cahier_08_self_service_password|Cahier-201-08]]: | ||
+ | |||
+ | ==== Cours NethServer-301 ==== | ||
+ | |||
+ | Le //Cours NethServer-301// | ||
+ | |||
+ | - [[nethserver_301_cahier_01_RSAT|Cahier-301-01]]: | ||
+ | - [[nethserver_301_cahier_02_active_directory|Cahier-301-02]]: | ||
+ | - [[nethserver_301_cahier_03_self_service_password_active_directory|Cahier-301-03]]: | ||
+ | - [[nethserver_301_cahier_04_ad_jonction_de_stations|Cahier-301-04]]: | ||
+ | |||
+ | |||
+ | ===== Particularités de ce document ===== | ||
+ | |||
+ | ==== Notes au lecteur ==== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | ==== Conventions ==== | ||
+ | |||
+ | {{Images_icone-201-001_doigt.png? | ||
+ | {{Images_icone-201-002_Lumiere.png? | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | {{Images_icone-201-005_Non-termine.png? | ||
+ | {{Images_icone-201-006_Securite.png? | ||
+ | |||
+ | Toutes les commandes à la console ou à travers //PuTTY// sont précédées d'une invite qui est toujours présente. | ||
+ | |||
+ | < | ||
+ | [root@dorgee ~]# ping 10.10.10.75 -c1 | ||
+ | |||
+ | PING 10.10.10.75 (10.10.10.75) 56(84) bytes of data. | ||
+ | 64 bytes from 10.10.10.75: | ||
+ | |||
+ | --- 10.10.10.75 ping statistics --- | ||
+ | 1 packets transmitted, | ||
+ | rtt min/ | ||
+ | [root@dorgee ~]# | ||
+ | </ | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | Commande à exécuter si ce n'est déjà fait. | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | Commande indiquée à titre d' | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ====== À savoir ====== | ||
+ | |||
+ | ===== Diagramme réseau ===== | ||
+ | |||
+ | {{ Images_Cahier-201-03-005.png? | ||
+ | \\ | ||
+ | |||
+ | ===== Serveur NethServer-7.6.1810 ===== | ||
+ | |||
+ | Le //Serveur NethServer-7.6.1810// | ||
+ | |||
+ | ==== dorgee.micronator.org ==== | ||
+ | |||
+ | Serveur passerelle pour les connexions à l' | ||
+ | Serveur //DHCP// pour tout le réseau LOCAL. | ||
+ | |||
+ | ==== tchana.micronator-dev.org ==== | ||
+ | |||
+ | Serveur virtuel LOCAL sous // | ||
+ | |||
+ | ==== Répertoire d' | ||
+ | |||
+ | Nous installerons // | ||
+ | |||
+ | ===== Poste de travail ===== | ||
+ | |||
+ | Windows-8.1, | ||
+ | |||
+ | ===== Espace de noms ===== | ||
+ | |||
+ | // | ||
+ | |||
+ | Un //espace de noms// est un ensemble de pages ayant le même préfixe dans leur titre. Par exemple, la page // | ||
+ | |||
+ | ===== Éditeur de texte ===== | ||
+ | |||
+ | Ne modifiez pas les fichiers avec des éditeurs de documents tels Notepad, TextEdit ou autres qui ajoutent une marque d' | ||
+ | |||
+ | ==== Notepad++ ==== | ||
+ | |||
+ | Voir le [[nethserver_101_cahier_02_installations_configurations_logiciels_prerequis|Cahier-02]]: | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | // | ||
+ | Notepad++ est un éditeur de code source qui prend en charge plusieurs langages. Ce logiciel, codé en C++ avec STL et win32 api, a pour vocation de fournir un éditeur de code source de taille réduite mais très performant. En optimisant de nombreuses fonctions, tout en conservant une facilité d’utilisation et une certaine convivialité, | ||
+ | |||
+ | //Site de téléchargement:// | ||
+ | |||
+ | ==== Documentation ==== | ||
+ | |||
+ | Guide pratique //(1er août 2013)//: [[http:// | ||
+ | Aide-mémoire des principales commande: [[https:// | ||
+ | |||
+ | ===== Connexion sécuritaire ===== | ||
+ | |||
+ | Ce document décrit aussi la marche à suivre pour une connexion sécuritaire //(https)// vers MediaWiki. | ||
+ | |||
+ | HTTPS //(Hyper Text Transfer Protocol Secure)// apparaît dans l'URL lorsqu' | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Préparation de l' | ||
+ | |||
+ | ===== Configuration du poste de travail ===== | ||
+ | |||
+ | Voir la section __À savoir__ du | ||
+ | [[nethserver_101_cahier_03_creation_un_serveur_virtuel# | ||
+ | : //Création d'un Serveur NethServer virtuel// du "Cours NethServer-101" | ||
+ | |||
+ | <WRAP column 60%> | ||
+ | ==== Vérification ==== | ||
+ | |||
+ | **Centre Réseau et partage -> Modifier les paramètres de la carte ->** clac //(clic droit)// sur la carte Éthernet **-> Statut -> Détails**. | ||
+ | |||
+ | ● Nos deux adresses IP et nos deux passerelles son présentes. | ||
+ | |||
+ | ● **Fermer** toutes les fenêtre. | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | |{{ Images_Cahier-201-02-007.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 45%> | ||
+ | '' | ||
+ | |||
+ | Les CNAME de notre Serveur NethServer virtuel LOCAL sont présents. | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-201-02-008.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Installation d'un Serveur NethServer ===== | ||
+ | |||
+ | Voir le [[nethserver_101_cahier_03_creation_un_serveur_virtuel|Cahier-03]]: | ||
+ | |||
+ | Pour un serveur virtuel de test, prendre un minimum de //8 Go// dynamiquement alloué __pour le disque principal__. | ||
+ | |||
+ | ==== Mise à jour du Serveur ==== | ||
+ | |||
+ | Avant de commencer quoi que ce soit, il est toujours préférable de mettre à jour le Serveur NethServer. | ||
+ | |||
+ | ==== Fail2ban & ClamAV ==== | ||
+ | |||
+ | Il est fortement recommandé d' | ||
+ | |||
+ | ===== interface Web NethServer ===== | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | Depuis le poste de travail, sur le réseau LOCAL // | ||
+ | |||
+ | === Login === | ||
+ | |||
+ | Lorsque vous parvenez à l'URL, vous serez invité à entrer votre nom d’utilisateur //(qui est obligatoirement root et son mot de passe)//. Entrez ce justificatif et cliquez sur **Login** afin d’être amené à l' | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | |{{ Images_Cahier-201-02-009.png? | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-02-010.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | Si vous avez de la difficulté à vous connecter, vidanger le cache DNS du poste de travail et celui du navigateur Firefox. | ||
+ | |||
+ | <WRAP column 55%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-02-011.png? | ||
+ | </ | ||
+ | <WRAP column 37%> | ||
+ | **Historique -> Supprimer l' | ||
+ | |{{ Images_Cahier-201-02-012.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-02-013.png? | ||
+ | ==== Fournisseur des comptes ==== | ||
+ | |||
+ | **Configuration -> Fournisseur des comptes**. | ||
+ | |||
+ | LDAP local est notre fournisseur de comptes. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-02-014.png? | ||
+ | ==== FQDN du serveur ==== | ||
+ | |||
+ | **Configuration -> DNS ->** onglet **Hôtes**. | ||
+ | |||
+ | Le FQDN du serveur: // | ||
+ | L' | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-02-015.png? | ||
+ | ==== Nom du serveur ==== | ||
+ | |||
+ | **Configuration -> Nom du serveur**. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-02-016.png? | ||
+ | ==== Paramètres d' | ||
+ | |||
+ | **Sécurité -> SSH**. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-02-017.png? | ||
+ | ==== FTP ==== | ||
+ | |||
+ | **Configuration -> FTP ->** onglet **Configurer**. | ||
+ | |||
+ | {{Images_icone-201-001_doigt.png? | ||
+ | __Nous ne recommandons pas d' | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{ Images_Cahier-201-02-018.png? | ||
+ | ==== Serveurs DNS ==== | ||
+ | |||
+ | **Configuration -> Réseau ->** onglet **Serveur DNS**. | ||
+ | |||
+ | Le serveur DNS secondaire peut être //8.8.8.8// ou // | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ===== Ouverture d'une session PuTTY ===== | ||
+ | |||
+ | Les paramètres du serveur sont définis correctement et on peut utiliser PuTTY pour s'y loguer. | ||
+ | |||
+ | Voir __PuTTY__ dans le | ||
+ | [[nethserver_101_cahier_02_installations_configurations_logiciels_prerequis# | ||
+ | : // | ||
+ | |||
+ | On se logue en tant que l' | ||
+ | |||
+ | < | ||
+ | login as: root | ||
+ | root@10.10.10.75' | ||
+ | Last login: Thu May 16 09:58:33 2019 from 10.10.10.81 | ||
+ | |||
+ | ************ Welcome to NethServer ************ | ||
+ | |||
+ | This is a NethServer installation. | ||
+ | |||
+ | Before editing configuration files, be aware | ||
+ | of the automatic events and templates system. | ||
+ | |||
+ | |||
+ | http:// | ||
+ | |||
+ | *********************************************** | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== Adresse IP ==== | ||
+ | |||
+ | On vérifie les adresses IP du serveur. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ifconfig | ||
+ | |||
+ | enp0s3: flags=4163< | ||
+ | inet 10.10.10.75 | ||
+ | inet6 fe80:: | ||
+ | ether 08: | ||
+ | RX packets 680 bytes 63712 (62.2 KiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 634 bytes 260579 (254.4 KiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | enp0s8: flags=4163< | ||
+ | inet 192.168.1.75 | ||
+ | inet6 fe80:: | ||
+ | ether 08: | ||
+ | RX packets 27919 bytes 26181152 (24.9 MiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 20591 bytes 5112156 (4.8 MiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | lo: flags=73< | ||
+ | inet 127.0.0.1 | ||
+ | inet6 ::1 prefixlen 128 scopeid 0x10< | ||
+ | loop txqueuelen 1000 (Local Loopback) | ||
+ | RX packets 2534 bytes 309622 (302.3 KiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 2534 bytes 309622 (302.3 KiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== Fail2ban ==== | ||
+ | |||
+ | On vérifie que le pare-feu // | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep -i fail2ban | ||
+ | |||
+ | fail2ban-firewalld-0.9.7-1.el7.noarch | ||
+ | fail2ban-server-0.9.7-1.el7.noarch | ||
+ | fail2ban-0.9.7-1.el7.noarch | ||
+ | fail2ban-sendmail-0.9.7-1.el7.noarch | ||
+ | nethserver-fail2ban-1.1.6-1.ns7.noarch | ||
+ | fail2ban-shorewall-0.9.7-1.el7.noarch | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie que Fail2ban roule sur le serveur. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ps aux | grep -i fail2ban | ||
+ | |||
+ | root 4586 1.2 0.5 1746708 22656 ? | ||
+ | root 7161 0.0 0.0 112728 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== ClamAV ==== | ||
+ | |||
+ | Par défaut //ClamAV// est installé, mais partiellement, | ||
+ | |||
+ | Dans le | ||
+ | [[nethserver_101_cahier_03_creation_un_serveur_virtuel# | ||
+ | : //Création d'un Serveur NethServer virtuel// du "Cours NethServer-101", | ||
+ | |||
+ | On vérifie que l' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep -i clamav | ||
+ | |||
+ | clamav-scanner-systemd-0.101.2-1.el7.x86_64 | ||
+ | clamav-lib-0.101.2-1.el7.x86_64 | ||
+ | clamav-server-systemd-0.101.2-1.el7.x86_64 | ||
+ | clamav-unofficial-sigs-5.6.2-7.el7.noarch | ||
+ | clamav-update-0.101.2-1.el7.x86_64 | ||
+ | clamav-0.101.2-1.el7.x86_64 | ||
+ | clamav-filesystem-0.101.2-1.el7.noarch | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{ Images_Cahier-201-02-019.png? | ||
+ | **Configuration -> Scanner Antivirus ->** onglet **Clamscan**. | ||
+ | |||
+ | ClamAV lancera un balayage complet du système à // | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ===== Utilisateurs ===== | ||
+ | |||
+ | {{ Images_Cahier-201-02-020.png? | ||
+ | ==== Utilisateur michelandre ==== | ||
+ | |||
+ | **Gestion -> Utilisateurs et groupes ->** onglet **Utilisateurs**. | ||
+ | |||
+ | L' | ||
+ | [[nethserver_101_cahier_03_creation_un_serveur_virtuel# | ||
+ | : //Création d'un Serveur NethServer virtuel// du "Cours NethServer-101" | ||
+ | \\ | ||
+ | |||
+ | ===== Fichier hosts du poste de travail ===== | ||
+ | |||
+ | {{ Images_Cahier-201-03-007.png? | ||
+ | Nous sommes sur un réseau LOCAL et vu que nous n' | ||
+ | <WRAP centeralign>'' | ||
+ | du poste de travail afin qu'il puisse trouver l' | ||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ====== Prérequis ====== | ||
+ | |||
+ | ===== Collection PHP ===== | ||
+ | |||
+ | Version PHP actuelle pour notre Serveur NethServer-7.6-1810. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# php --version | ||
+ | |||
+ | PHP 5.4.16 (cli) (built: Oct 30 2018 19:30:51) | ||
+ | Copyright (c) 1997-2013 The PHP Group | ||
+ | Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Comme on le voit, notre version //5.4.16// de PHP est légèrement vieillotte. | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | ==== Collections de logiciels ==== | ||
+ | |||
+ | {{Images_icone-201-001_doigt.png? | ||
+ | |||
+ | Tous les //RPM// des Collections sont installés dans le répertoire ''/ | ||
+ | |||
+ | ==== But de la Collection PHP === | ||
+ | |||
+ | Le but de la // | ||
+ | |||
+ | ==== Prérequis pour l' | ||
+ | |||
+ | // | ||
+ | Il faut installer les référentiels //stephdl// et //remi// pour pouvoir installer la // | ||
+ | |||
+ | ==== Référentiel stephdl ==== | ||
+ | |||
+ | // | ||
+ | |||
+ | On vérifie si le référentiel **stephdl** est déjà installé. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep nethserver-stephdl | ||
+ | |||
+ | nethserver-stephdl-1.0.7-1.ns7.sdl.noarch | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Si ce n'est déjà fait, on installe ce référentiel. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana ~]# yum install -y http:// | ||
+ | |||
+ | ... | ||
+ | Transaction Summary | ||
+ | ============================================================================================ | ||
+ | Install | ||
+ | |||
+ | Total size: 40 k | ||
+ | Installed size: 40 k | ||
+ | ... | ||
+ | Installed: | ||
+ | nethserver-stephdl.noarch 0: | ||
+ | |||
+ | Complete! | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Vérification. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep stephdl | ||
+ | |||
+ | nethserver-stephdl-1.0.7-1.ns7.sdl.noarch | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Référentiel remi ==== | ||
+ | |||
+ | On vérifie si le référentiel **remi** est déjà installé. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep remi | ||
+ | |||
+ | remi-release-7.6-2.el7.remi.noarch | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Si ce n'est déjà fait, on installe ce référentiel. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana ~]# yum install -y http:// | ||
+ | |||
+ | ... | ||
+ | Transaction Summary | ||
+ | ============================================================================================ | ||
+ | Install | ||
+ | |||
+ | Total size: 19 k | ||
+ | Installed size: 19 k | ||
+ | ... | ||
+ | Installed: | ||
+ | remi-release.noarch 0: | ||
+ | |||
+ | Complete! | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep remi | ||
+ | |||
+ | remi-release-7.6-2.el7.remi.noarch | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Installation de la Collection PHP ==== | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum install -y nethserver-php-scl --enablerepo=stephdl | ||
+ | |||
+ | ... | ||
+ | Résumé de la transaction | ||
+ | ============================================================================================ | ||
+ | Installation | ||
+ | |||
+ | Taille totale des téléchargements : 47 M | ||
+ | Taille d' | ||
+ | ... | ||
+ | Installation : scl-utils-20130529-19.el7.x86_64 | ||
+ | ... | ||
+ | Installation : nethserver-php-scl-1.2.4-1.ns7.sdl.x86_64 | ||
+ | Vérification : 1: | ||
+ | ... | ||
+ | Vérification : php72-php-tidy-7.2.18-1.el7.remi.x86_64 | ||
+ | |||
+ | Installé : | ||
+ | nethserver-php-scl.x86_64 0: | ||
+ | |||
+ | Dépendances installées : | ||
+ | enchant.x86_64 1: | ||
+ | ... | ||
+ | tcl.x86_64 1: | ||
+ | |||
+ | Terminé ! | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== Usage ==== | ||
+ | |||
+ | Normalement, | ||
+ | |||
+ | Les réglages sont répartis à deux endroits. | ||
+ | |||
+ | - À la page **Gestion -> Hôtes virtuels**.\\ | ||
+ | Là, après avoir créé un hôte virtuel, vous pouvez choisir la version que vous utiliserez pour l'// | ||
+ | - À la page **Configuration -> Paramètres PHP**.\\ Là, vous pouvez choisir la version PHP que vous souhaitez utiliser __pour l’ensemble du serveur__.\\ - Lorsqu' | ||
+ | \\ | ||
+ | |||
+ | ==== Répertoire d' | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum repolist | grep remi | ||
+ | |||
+ | * remi-safe: mirror.team-cymru.com | ||
+ | remi-safe | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie le répertoire ''/ | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -ls /opt | ||
+ | |||
+ | total 0 | ||
+ | 0 drwxr-xr-x. 7 root root 81 Jan 4 09:16 puppetlabs | ||
+ | 0 drwxr-xr-x | ||
+ | 0 drwxr-xr-x | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On affiche le répertoire ''/ | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -ls /opt/remi | ||
+ | |||
+ | total 0 | ||
+ | 0 dr-xr-xr-x 3 root root 32 16 mai 13:03 php56 | ||
+ | 0 dr-xr-xr-x 3 root root 32 16 mai 13:03 php70 | ||
+ | 0 dr-xr-xr-x 3 root root 32 16 mai 13:03 php71 | ||
+ | 0 dr-xr-xr-x 3 root root 32 16 mai 13:03 php72 | ||
+ | 0 dr-xr-xr-x 3 root root 32 16 mai 13:03 php73 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== PHP72 par défaut après une connexion à la ligne de commande ==== | ||
+ | |||
+ | // | ||
+ | |||
+ | On crée le fichier d' | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | |||
+ | < | ||
+ | cat > / | ||
+ | #!/bin/bash | ||
+ | source / | ||
+ | if [[ " | ||
+ | src=" | ||
+ | pkgs=(${src// | ||
+ | uniq=($(printf " | ||
+ | export X_SCLS=" | ||
+ | fi | ||
+ | EOT | ||
+ | |||
+ | </ | ||
+ | |||
+ | On rend le fichier exécutable. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# chmod +x / | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -als / | ||
+ | |||
+ | 4 -rwxr-xr-x 1 root root 215 16 mai 13:11 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | === Vérification si PHP72 est le défaut== | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | On vérifie l' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep scl- | ||
+ | |||
+ | centos-release-scl-rh-2-3.el7.centos.noarch | ||
+ | centos-release-scl-2-3.el7.centos.noarch | ||
+ | nethserver-php-scl-1.2.4-1.ns7.sdl.x86_64 | ||
+ | scl-utils-20130529-19.el7.x86_64 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Collections installées. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# scl -l | ||
+ | |||
+ | php56 | ||
+ | php70 | ||
+ | php71 | ||
+ | php72 | ||
+ | php73 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Quel est le PHP par défaut? | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# which php | ||
+ | |||
+ | / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Quelle est sa version? | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# php --version | ||
+ | |||
+ | PHP 7.2.18 (cli) (built: Apr 30 2019 14:41:03) ( NTS ) | ||
+ | Copyright (c) 1997-2018 The PHP Group | ||
+ | Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Notre fichier '' | ||
+ | \\ | ||
+ | |||
+ | === Sauvegarde | ||
+ | |||
+ | On vérifie si le nom du fichier ''/ | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | |||
+ | < | ||
+ | NouvelleInclusion="/ | ||
+ | if grep -Fxq " | ||
+ | then | ||
+ | # L' | ||
+ | echo -e "\nLe fichier custom.include contient déjà l' | ||
+ | else | ||
+ | # L' | ||
+ | echo -e " | ||
+ | echo -e " | ||
+ | fi | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cat / | ||
+ | |||
+ | / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Ci-dessus, il n'y a pas de ligne vide avant __/ | ||
+ | \\ | ||
+ | |||
+ | ==== Mise à jour de la Collection ==== | ||
+ | |||
+ | NethServer-7.6.1810 | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum update -y nethserver-php-scl --enablerepo=stephdl | ||
+ | |||
+ | Loaded plugins: changelog, fastestmirror, | ||
+ | Loading mirror speeds from cached hostfile | ||
+ | * ce-base: it.centos.contactlab.it | ||
+ | * ce-extras: it.centos.contactlab.it | ||
+ | * ce-updates: it.centos.contactlab.it | ||
+ | * epel: epel.mirror.constant.com | ||
+ | * nethforge: mirror.nethserver.org | ||
+ | * nethserver-base: | ||
+ | * nethserver-updates: | ||
+ | * remi-safe: rpms.remirepo.net | ||
+ | No packages marked for update | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | \\ | ||
+ | |||
+ | ==== Ajustement des paramètres PHP ==== | ||
+ | |||
+ | Les valeurs de certains paramètres de PHP ne sont pas suffisants pour certains ajouts. Ces paramètres sont: **'' | ||
+ | |||
+ | Affichage des paramètres par défaut. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# config show php72 | ||
+ | |||
+ | php72=configuration | ||
+ | AllowUrlFopen=On | ||
+ | ExposePhp=0 | ||
+ | MaxExecutionTime=30 | ||
+ | MaxFileUpload=20 | ||
+ | MaxInputTime=60 | ||
+ | MemoryLimit=128 | ||
+ | PostMaxSize=20 | ||
+ | UploadMaxFilesize=10 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_icone-201-001_doigt.png? | ||
+ | \\ | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | \\ | ||
+ | |||
+ | === MemoryLimit === | ||
+ | |||
+ | Chaque fois qu'un client fait une requête au serveur Web, PHP génère un processus PHP. Le travail de ce processus est de générer du code HTML qu'il envoie au client. Le processus fournit un temps d' | ||
+ | |||
+ | === PostMaxSize === | ||
+ | |||
+ | Le paramètre '' | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | === UploadMaxFilesize === | ||
+ | |||
+ | Pour certaines extensions telles que WooCommerce, | ||
+ | La limite ci-contre, est celle de WordPress. | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-02-200.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | === Version PHP par défaut === | ||
+ | |||
+ | On définit la version PHP par défaut pour Apache. | ||
+ | |||
+ | **Configuration -> Paramètres PHP ->** onglet **Version PHP Apache ->** cliquer | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-02-201.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | === Ajustements des paramètres de la version PHP-7.2 === | ||
+ | |||
+ | Onglet **Php V7.2 SCL**\\ | ||
+ | Ajuster tel que ci-contre //(250M - 100M - 75M)// | ||
+ | **-> SOUMETTRE**. | ||
+ | |||
+ | {{Images_icone-201-006_Securite.png? | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-02-202.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | Onglet **Version par défaut de PHP**\\ | ||
+ | Ajuster tel que ci-contre //(250M - 75M - 75M)// | ||
+ | **-> SOUMETTRE**.\\ | ||
+ | |||
+ | {{Images_icone-201-006_Securite.png? | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-02-203.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | === Vérifications à la ligne de commande === | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cat / | ||
+ | |||
+ | memory_limit | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cat / | ||
+ | |||
+ | post_max_size | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cat / | ||
+ | |||
+ | upload_max_filesize | ||
+ | </ | ||
+ | |||
+ | {{Images_icone-201-004_Triangle.png? | ||
+ | \\ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_icone-201-002_Lumiere.png? | ||
+ | \\ | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | \\ | ||
+ | |||
+ | ===== Collection MariaDB 10.2 ===== | ||
+ | |||
+ | // | ||
+ | La // | ||
+ | |||
+ | ==== Fin de vie ==== | ||
+ | |||
+ | // | ||
+ | La Foundation MariaDB peut décider de maintenir les versions sélectionnées au-delà de la période normale de 5 ans //(fin de vie)//(( **Fin de vie**// | ||
+ | \\ \\ )) si leur utilisation est exceptionnellement répandue. Vu que la version MariaDB 5.5, incluse dans plusieurs distributions Linux importantes, | ||
+ | |||
+ | <WRAP column 45%> | ||
+ | < | ||
+ | [root@tchana ~]# rpm -qa | grep mariadb | ||
+ | |||
+ | mariadb-server-5.5.60-1.el7_5.x86_64 | ||
+ | mariadb-5.5.60-1.el7_5.x86_64 | ||
+ | mariadb-libs-5.5.60-1.el7_5.x86_64 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | Vu que la version //MariaDB 10.2// est assurée d'une durée de vie jusqu' | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-101-06-006.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Prérequis ==== | ||
+ | |||
+ | L' | ||
+ | \\ | ||
+ | |||
+ | ==== Installation de la Collection MariaDB 10.2 ==== | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum install -y --enablerepo=stephdl nethserver-rh-mariadb102 | ||
+ | |||
+ | ... | ||
+ | Résumé de la transaction | ||
+ | ============================================================================================ | ||
+ | Installation | ||
+ | |||
+ | Taille totale des téléchargements : 27 M | ||
+ | Taille d' | ||
+ | ... | ||
+ | Installé : | ||
+ | nethserver-rh-mariadb102.noarch 0: | ||
+ | |||
+ | Dépendances installées : | ||
+ | rh-mariadb102.x86_64 0:3.0-5.el7 | ||
+ | rh-mariadb102-mariadb.x86_64 1: | ||
+ | rh-mariadb102-mariadb-common.x86_64 1: | ||
+ | rh-mariadb102-mariadb-config.x86_64 1: | ||
+ | rh-mariadb102-mariadb-errmsg.x86_64 1: | ||
+ | rh-mariadb102-mariadb-server.x86_64 1: | ||
+ | rh-mariadb102-mariadb-server-utils.x86_64 1: | ||
+ | rh-mariadb102-runtime.x86_64 0:3.0-5.el7 | ||
+ | |||
+ | Terminé ! | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | === Vérification === | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# scl -l | ||
+ | |||
+ | php56 | ||
+ | php70 | ||
+ | php71 | ||
+ | php72 | ||
+ | php73 | ||
+ | rh-mariadb102 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | La Collection a été installée dans le répertoire ''/ | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -als /opt/rh | ||
+ | |||
+ | total 0 | ||
+ | 0 drwxr-xr-x | ||
+ | 0 drwxr-xr-x. 5 root root 46 8 févr. 17:44 .. | ||
+ | 0 dr-xr-xr-x | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On affiche les propriétés de la Collection. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# config show rh-mariadb102-mariadb | ||
+ | |||
+ | rh-mariadb102-mariadb=configuration | ||
+ | LocalNetworkingOnly=no | ||
+ | MaxAllowedPacket=16M | ||
+ | TCPPort=3312 | ||
+ | access=private | ||
+ | status=enabled | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-005.png? | ||
+ | |||
+ | On vérifie que le démon soit activé. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# systemctl list-unit-files | grep mariadb | ||
+ | |||
+ | mariadb.service | ||
+ | rh-mariadb102-mariadb.service | ||
+ | rh-mariadb102-mariadb@.service | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie que le démon soit en exécution. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ps aux | grep mariadb102 | ||
+ | |||
+ | mysql | ||
+ | root 5716 0.0 0.0 112736 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== Journal de la Collection ==== | ||
+ | |||
+ | Le journal pour cette Collection est situé dans le fichier ''/ | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -ls / | ||
+ | |||
+ | 12 -rw-rw---- 1 mysql mysql 7404 8 févr. 19:38 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== Usage ==== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | |||
+ | Stéphane a créé plusieurs raccourcis pour faciliter l' | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | mysql102 | ||
+ | mysqladmin102 | ||
+ | mysqlbinlog102 | ||
+ | mysqlcheck102 | ||
+ | mysql_config_editor102 | ||
+ | mysqld_multi102 | ||
+ | mysqldump102 | ||
+ | mysqlimport102 | ||
+ | mysql_plugin102 | ||
+ | mysqlshow102 | ||
+ | mysqlslap102 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Si vous voulez lancer //MariaDb 10.2// depuis votre terminal, utilisez la commande suivante. | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | mysql102 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Mise à jour de la Collection ==== | ||
+ | |||
+ | Le Serveur NethServer utilise le référentiel '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum update -y rh-mariadb102-mariadb --enablerepo=stephdl | ||
+ | |||
+ | Modules complémentaires chargés : changelog, fastestmirror, | ||
+ | Loading mirror speeds from cached hostfile | ||
+ | * ce-base: mirror.rackspace.com | ||
+ | * ce-extras: mirror.rackspace.com | ||
+ | * ce-updates: mirror.rackspace.com | ||
+ | * epel: mirror.texas3006.com | ||
+ | * nethforge: mirror.nethserver.org | ||
+ | * nethserver-base: | ||
+ | * nethserver-updates: | ||
+ | * remi-safe: mirror.bebout.net | ||
+ | No packages marked for update | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Création de la base de données pour MediaWiki ===== | ||
+ | |||
+ | On crée la base de données //(dans notre exemple, on la nomme <wrap hi> | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# mysqladmin102 CREATE MediaWikiBD | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On entre dans la console MariaDB 10.2. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# mysql102 | ||
+ | |||
+ | Welcome to the MariaDB monitor. | ||
+ | Your MariaDB connection id is 9 | ||
+ | Server version: 10.2.8-MariaDB MariaDB Server | ||
+ | |||
+ | Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. | ||
+ | |||
+ | Type ' | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | On vérifie que la base de données ait bien été créée. | ||
+ | |||
+ | < | ||
+ | MariaDB [(none)]> | ||
+ | |||
+ | +--------------------+ | ||
+ | | Database | ||
+ | +--------------------+ | ||
+ | | MediaWikiBD | ||
+ | | information_schema | | ||
+ | | mysql | | ||
+ | | performance_schema | | ||
+ | | phpmyadmin | ||
+ | +--------------------+ | ||
+ | 5 rows in set (0.01 sec) | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | ==== Grant ==== | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | On crée un usager pour notre base de données et on lui donne //(grant)// les permissions nécessaires. | ||
+ | |||
+ | < | ||
+ | MariaDB [(none)]> | ||
+ | |||
+ | Query OK, 0 rows affected (0.01 sec) | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | === Paramètres de la BD pour MediaWiki === | ||
+ | |||
+ | Notez le nom de la base de données: <wrap hi> | ||
+ | |||
+ | {{Images_Cahier-101-03-008.png? | ||
+ | |||
+ | Vous devez exécuter la commande '' | ||
+ | |||
+ | < | ||
+ | MariaDB [(none)]> | ||
+ | |||
+ | Query OK, 0 rows affected (0.00 sec) | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | On vérifie les droits de l' | ||
+ | |||
+ | < | ||
+ | MariaDB [(none)]> | ||
+ | |||
+ | +--------------------------------------------------------------------------------------------------------------------+ | ||
+ | | Grants for usager_MWBD@localhost | ||
+ | +--------------------------------------------------------------------------------------------------------------------+ | ||
+ | | GRANT USAGE ON *.* TO ' | ||
+ | | GRANT ALL PRIVILEGES ON `MediaWikiBD`.* TO ' | ||
+ | +--------------------------------------------------------------------------------------------------------------------+ | ||
+ | 2 rows in set (0,00 sec) | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | On quitte la console de MariaDB 10.2. | ||
+ | |||
+ | < | ||
+ | MariaDB [(none)]> | ||
+ | |||
+ | Bye | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ===== Installation de git ===== | ||
+ | |||
+ | On installe '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum install -y git | ||
+ | |||
+ | ... | ||
+ | Installation de 2 paquet(s) | ||
+ | |||
+ | Taille totale des téléchargements : 4.6 M | ||
+ | Taille d' | ||
+ | ... | ||
+ | Installé: | ||
+ | git.x86_64 0: | ||
+ | |||
+ | Dépendance(s) installée(s) : | ||
+ | perl-Git.noarch 0: | ||
+ | |||
+ | Terminé ! | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ===== Création de l' | ||
+ | |||
+ | **Gestion -> Hôtes virtuels -> CRÉER NOUVEAU ->** onglet **Général**. | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-008.png? | ||
+ | |||
+ | // | ||
+ | On peut utiliser n' | ||
+ | |||
+ | C'est dans ce répertoire qu'on installera MediaWiki. | ||
+ | |||
+ | On entre les informations demandées. | ||
+ | |||
+ | **-> SOUMETTRE**. | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-009.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-010.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-011.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{ Images_Cahier-201-03-012.png? | ||
+ | On vérifie le résultat. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ==== Vérification du répertoire mediawiki ==== | ||
+ | |||
+ | La création de l' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -alsd / | ||
+ | |||
+ | 0 drwxr-sr-x 2 ftp apache 6 May 25 18:12 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | On change le propriétaire. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# chown apache / | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -alsd / | ||
+ | |||
+ | 0 drwxr-sr-x 2 apache apache 6 May 25 18:12 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ==== Création d'une entrée DNS pour l' | ||
+ | |||
+ | {{ Images_Cahier-201-03-013.png? | ||
+ | **Configuration -> DNS ->** onglet **Hôtes -> CRÉER NOUVEAU**. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | Le //**Nom d' | ||
+ | |||
+ | L'// | ||
+ | |||
+ | **-> SOUMETTRE**. | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-014.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-03-015.png? | ||
+ | On vérifie le résultat. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ==== Configuration de la messagerie électronique ==== | ||
+ | |||
+ | Si on veut que MediaWiki puisse envoyer et recevoir des courriels, il faut configurer le domaine de l' | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | **Configuration -> Courrier (Email) ->** onglet | ||
+ | |{{ Images_Cahier-201-03-016.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-017.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-03-018.png? | ||
+ | On vérifie le résultat. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | === Création d'un alias pour l' | ||
+ | |||
+ | Il nous faut créer un alias de messagerie pour l' | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | \\ | ||
+ | \\ | ||
+ | **Gestion -> Adresse mail ->** onglet | ||
+ | |{{ Images_Cahier-201-03-019.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-020.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{ Images_Cahier-201-03-021.png? | ||
+ | On vérifie le résultat. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | L' | ||
+ | |||
+ | - https:// | ||
+ | - https:// | ||
+ | \\ | ||
+ | |||
+ | ===== Redirection par le module Proxy inverse ===== | ||
+ | |||
+ | // | ||
+ | |||
+ | On installe le module **Proxy Inverse** qui s' | ||
+ | |||
+ | ==== Installation ==== | ||
+ | |||
+ | {{ Images_Cahier-201-03-022.png? | ||
+ | **Administration -> Gestionnaire des logiciels ->** onglet **Disponible ->** cocher **Proxy inverse -> AJOUTER**. | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | **APPLIQUER LES CHANGEMENTS**. | ||
+ | |{{ Images_Cahier-201-03-023.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | **Recharger la page**. | ||
+ | |{{ Images_Cahier-201-03-024.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | Le nouveau menu //**Proxy inverse**// est disponible. | ||
+ | |{{ Images_Cahier-201-03-025.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Configuration du mandataire inversé ==== | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | **Passerelle -> Proxy inverse ->** onglet **Hôtes virtuels -> CRÉER NOUVEAU**.\\ | ||
+ | {{ Images_Cahier-201-03-026.png? | ||
+ | |||
+ | On configure le Serveur NethServer en tant que mandataire inversé pour: | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-027.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 15%> | ||
+ | On vérifie le résultat. | ||
+ | </ | ||
+ | <WRAP column 77%> | ||
+ | |{{ Images_Cahier-201-03-028.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Vérification de la connexion redirigée et sécurisée ==== | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | On se rend à l'URL https:// | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | C'est la page Web par défaut de NethServer qui s' | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-029.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Certificat Let's Encrypt ====== | ||
+ | |||
+ | ===== CNAME ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | Il faut ajouter les CNAME **mediawiki** chez [[https:// | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | On clique **micronator-dev.org**. | ||
+ | |{{ Images_Cahier-201-03-030.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | **DNS**. | ||
+ | |{{ Images_Cahier-201-03-031.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | On ajoute les CNAME: | ||
+ | \\ | ||
+ | |||
+ | **mediawiki** | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | **www.mediawiki** | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | **mail.mediawiki** | ||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-032.png? | ||
+ | |||
+ | |{{ Images_Cahier-201-03-033.png? | ||
+ | |||
+ | |{{ Images_Cahier-201-03-034.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | On rafraîchit la page, on vérifie et on quitte [[https:// | ||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-035.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ==== Demande d'un certificat de test ==== | ||
+ | |||
+ | On force '' | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# / | ||
+ | --issue | ||
+ | --dns dns_cf | ||
+ | -d micronator-dev.org | ||
+ | -d www.micronator-dev.org | ||
+ | -d mail.micronator-dev.org | ||
+ | -d wpad.micronator-dev.org | ||
+ | -d mediawiki.micronator-dev.org | ||
+ | -d www.mediawiki.micronator-dev.org | ||
+ | -d mail.mediawiki.micronator-dev.org | ||
+ | --cert-file / | ||
+ | --ca-file / | ||
+ | --key-file / | ||
+ | --reloadcmd "/ | ||
+ | --force | ||
+ | --test | ||
+ | |||
+ | ... | ||
+ | [lun. juin 3 15:01:15 EDT 2019] Installing cert to:/ | ||
+ | [lun. juin 3 15:01:15 EDT 2019] Installing CA to:/ | ||
+ | [lun. juin 3 15:01:15 EDT 2019] Installing key to:/ | ||
+ | [lun. juin 3 15:01:15 EDT 2019] Run reload cmd: / | ||
+ | [lun. juin 3 15:01:18 EDT 2019] Reload success | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | La demande d'un certificat de //test// a été couronné de succès. | ||
+ | |||
+ | ==== Demande d'un certificat officiel ==== | ||
+ | |||
+ | On force le renouvellement pour l' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# / | ||
+ | --issue | ||
+ | --dns dns_cf | ||
+ | -d micronator-dev.org | ||
+ | -d www.micronator-dev.org | ||
+ | -d mail.micronator-dev.org | ||
+ | -d wpad.micronator-dev.org | ||
+ | -d mediawiki.micronator-dev.org | ||
+ | -d www.mediawiki.micronator-dev.org | ||
+ | -d mail.mediawiki.micronator-dev.org | ||
+ | --cert-file / | ||
+ | --ca-file / | ||
+ | --key-file / | ||
+ | --reloadcmd "/ | ||
+ | --force | ||
+ | |||
+ | ... | ||
+ | [lun. juin 3 15:03:02 EDT 2019] Installing cert to:/ | ||
+ | [lun. juin 3 15:03:02 EDT 2019] Installing CA to:/ | ||
+ | [lun. juin 3 15:03:02 EDT 2019] Installing key to:/ | ||
+ | [lun. juin 3 15:03:02 EDT 2019] Run reload cmd: / | ||
+ | [lun. juin 3 15:03:04 EDT 2019] Reload success | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | La demande d'un certificat officiel a été couronné de succès. | ||
+ | \\ | ||
+ | |||
+ | ===== Vérification de la connexion sécurisée ===== | ||
+ | |||
+ | - On se rend à: https:// | ||
+ | - On peut aussi utiliser **http:// | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | Le cadenas est __vert__, car le certificat a été émis par Let's Encrypt qui est une autorité de certification reconnue et la connexion est sécurisée par un chiffrement // | ||
+ | |||
+ | C'est la page Web par défaut de NethServer qui s' | ||
+ | |||
+ | Si nous avions un site // | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-036.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | <WRAP column 55%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-037.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | </ | ||
+ | <WRAP column 37%> | ||
+ | **Historique -> Supprimer l' | ||
+ | |{{ Images_Cahier-201-03-038.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ====== Installation de MediaWiki ====== | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | ===== Choix de la version ===== | ||
+ | |||
+ | Avec un fureteur sur la station de travail, on se rend au site de téléchargement de MediaWiki: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | À la date d' | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-03-039.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | On se rend dans le répertoire '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cd / | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# pwd | ||
+ | |||
+ | / | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie le contenu du répertoire. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als | ||
+ | |||
+ | total 0 | ||
+ | 0 drwxr-sr-x 2 apache apache | ||
+ | 0 drwxr-xr-x 3 root | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ===== Téléchargement ===== | ||
+ | |||
+ | // | ||
+ | La première étape consiste à faire un clone du répertoire de MediaWiki. Cette opération prend un moment.\\ | ||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | À la console du serveur, on entre la commande ci-dessous pour que '' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# git clone https:// | ||
+ | |||
+ | Cloning into ' | ||
+ | remote: Counting objects: 7317, done | ||
+ | remote: Finding sources: 100% (7317/7317) | ||
+ | remote: Getting sizes: 100% (6239/6239) | ||
+ | remote: Compressing objects: | ||
+ | remote: Total 7317 (delta 1648), reused 3191 (delta 1077) | ||
+ | Receiving objects: 100% (7317/ | ||
+ | Resolving deltas: 100% (1648/ | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Mise à jour des modules ==== | ||
+ | |||
+ | Les branches de publication contiennent un tas de sous-modules Git, pour les extensions et les skins couramment utilisés //(la branche master ne les possède pas)//. | ||
+ | |||
+ | On met à jour les sous-modules. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# git submodule update --init | ||
+ | |||
+ | Submodule ' | ||
+ | ... | ||
+ | |||
+ | ... | ||
+ | Submodule path ' | ||
+ | Cloning into ' | ||
+ | remote: Counting objects: 5, done | ||
+ | remote: Total 25438 (delta 0), reused 25438 (delta 0) | ||
+ | Receiving objects: 100% (25438/ | ||
+ | Resolving deltas: 100% (17591/ | ||
+ | Submodule path ' | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Ajustement du propriétaire et du groupe ==== | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# chown -R apache: | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Ajustement des droits ==== | ||
+ | |||
+ | On renforce la sécurité de l’accès aux fichiers <wrap em> | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# find . -type f -exec chmod 640 {} \; | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On répète l' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# find . -type d -exec chmod 2750 {} \; | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als | ||
+ | |||
+ | total 1296 | ||
+ | 4 drwxr-s--- 16 apache apache | ||
+ | 0 drwxr-xr-x | ||
+ | 8 -rw-r-S--- | ||
+ | 136 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 20 -rw-r-S--- | ||
+ | 12 -rw-r-S--- | ||
+ | 4 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 drwxr-s--- 24 apache apache | ||
+ | 4 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 872 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 8 -rw-r-S--- | ||
+ | 12 drwxr-s--- 71 apache apache | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 24 -rw-r-S--- | ||
+ | 12 drwxr-s--- 17 apache apache | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 8 -rw-r-S--- | ||
+ | 12 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 0 lrwxrwxrwx | ||
+ | 36 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 0 drwxr-s--- | ||
+ | 4 -rw-r-S--- | ||
+ | 24 -rw-r-S--- | ||
+ | 4 -rw-r-S--- | ||
+ | 12 -rw-r-S--- | ||
+ | 0 drwxr-s--- 10 apache apache | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ===== Installation de MediaWiki ===== | ||
+ | |||
+ | On se rend sur notre site: https:// | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | On clique **set up the wiki**. | ||
+ | |{{ Images_Cahier-201-03-040.png? | ||
+ | </ | ||
+ | <WRAP column 62%> | ||
+ | On choisit la langue du wiki **-> Continuer**. | ||
+ | |{{ Images_Cahier-201-03-041.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | // | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-042.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | On indique obligatoirement **127.0.0.1:< | ||
+ | //(Le port <wrap em> | ||
+ | |{{ Images_Cahier-201-03-043.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | <wrap hi> | ||
+ | <wrap hi> | ||
+ | <wrap hi> | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-044.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | On prend les défauts **-> Continuer**. | ||
+ | |{{ Images_Cahier-201-03-045.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | On entre le nom désiré pour notre wiki. | ||
+ | |{{ Images_Cahier-201-03-046.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-047.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-048.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | Si vous n'avez pas de certificat SSH d'une Autorité de Certification //(CA)// reconnue, il vaut mieux utiliser une //**Adresse de courriel**// | ||
+ | |||
+ | * Pour l' | ||
+ | * Pour un serveur directement branché à l' | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | On choisit le profil des droits d' | ||
+ | |{{ Images_Cahier-201-03-049.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | On choisit notre licence. | ||
+ | |{{ Images_Cahier-201-03-050.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-051.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | On choisit les habillages. | ||
+ | |{{ Images_Cahier-201-03-052.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | On choisit les extensions désirées. | ||
+ | |{{ Images_Cahier-201-03-053.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-054.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-055.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | **Continuer**. | ||
+ | |{{ Images_Cahier-201-03-056.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | **Continuer**. | ||
+ | |{{ Images_Cahier-201-03-057.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | On sauvegarde le fichier de configuration sur le poste de travail **-> OK**. | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | |{{ Images_Cahier-201-03-058.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ===== Téléversement du fichier de configuration ===== | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | On téléverse le fichier de configuration, | ||
+ | Pour ce faire, on peut utiliser //WinSCP// ou // | ||
+ | </ | ||
+ | <WRAP column 62%> | ||
+ | |{{ Images_Cahier-201-03-059.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ===== Ajustement des droits ===== | ||
+ | |||
+ | Si nous n'y sommes pas déjà, on se rend à la racine de notre site pour ajuster le propriétaire et les droits de notre site. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana ~]# cd / | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# pwd | ||
+ | |||
+ | / | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Ajustement du propriétaire et du groupe ==== | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# chown -R apache: | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Ajustement des droits ==== | ||
+ | |||
+ | On renforce la sécurité de l’accès aux fichiers <wrap em> | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# find . -type f -exec chmod 640 {} \; | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On répète l' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# find . -type d -exec chmod 2750 {} \; | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie pour les fichiers, les répertoires et les fichiers cachés et de plus, " | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als | ||
+ | |||
+ | total 1304 | ||
+ | 4 drwxr-s--- 16 apache apache | ||
+ | 0 drwxr-xr-x | ||
+ | 8 -rw-r-S--- | ||
+ | ... | ||
+ | 4 -rw-r-S--- | ||
+ | ... | ||
+ | 0 drwxr-s--- | ||
+ | ... | ||
+ | 8 -rw-r-S--- | ||
+ | ... | ||
+ | 0 drwxr-s--- 10 apache apache | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ===== Accès et login à MediaWiki ===== | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | On retourne à l' | ||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-060.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 72%> | ||
+ | **Se connecter**. | ||
+ | |{{ Images_Cahier-201-03-061.png? | ||
+ | </ | ||
+ | <WRAP column 20%> | ||
+ | On se connecte. | ||
+ | |{{ Images_Cahier-201-03-062.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | Victoire totale, notre site MediaWiki est fonctionnel. | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-063.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ====== Configuration ====== | ||
+ | |||
+ | ===== Préparation ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | <WRAP column 55%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-064.png? | ||
+ | </ | ||
+ | <WRAP column 37%> | ||
+ | **Historique -> Supprimer l' | ||
+ | |{{ Images_Cahier-201-03-065.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Login ===== | ||
+ | |||
+ | Si ce n'est déjà fait, on se logue à notre MediaWiki. | ||
+ | |||
+ | <WRAP column 62%> | ||
+ | On donne l' | ||
+ | |{{ Images_Cahier-201-03-066.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | On se logue. | ||
+ | |{{ Images_Cahier-201-03-067.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Confirmation de l' | ||
+ | |||
+ | L' | ||
+ | |||
+ | Vous pourriez aussi choisir de laisser les autres vous contacter sur votre page de discussion utilisateur, | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | **Préférences**. | ||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-068.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | Onglet **Informations personnelles ->** cadre **Options des courriels ->** cliquez **Confirmez votre adresse de courriel**. | ||
+ | |{{ Images_Cahier-201-03-069.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | **Envoyer un code de confirmation**. | ||
+ | |{{ Images_Cahier-201-03-070.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | MediaWiki affiche que le courriel de confirmation a été envoyé. | ||
+ | |{{ Images_Cahier-201-03-071.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | Dans le courriel qu'on reçoit, on clique le **lien de confirmation**. | ||
+ | |{{ Images_Cahier-201-03-072.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | MediaWiki affiche que notre adresse courriel a été confirmée. | ||
+ | |{{ Images_Cahier-201-03-073.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | Dans **Préférences ->** onglet **Informations personnelles ->** cadre **Options des courriels ->** une ligne indique que notre adresse de courriel a été confirmée. | ||
+ | |{{ Images_Cahier-201-03-074.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | ===== Importation de fichiers ===== | ||
+ | |||
+ | Sur la page d' | ||
+ | </ | ||
+ | <WRAP column 14%> | ||
+ | |{{ Images_Cahier-201-03-075.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 48%> | ||
+ | **Parcourir ->** sélectionner l' | ||
+ | |{{ Images_Cahier-201-03-076.png? | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | </ | ||
+ | <WRAP column 44%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-077.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 23%> | ||
+ | Les métadonnées sont affichées. | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-03-078-A.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Répertoires d' | ||
+ | |||
+ | Après quelques importations d' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -als / | ||
+ | |||
+ | total 12 | ||
+ | 0 drwxr-s--- | ||
+ | 4 drwxr-s--- 16 apache apache 4096 3 juin 16:39 .. | ||
+ | 0 drwxr-sr-x | ||
+ | 0 drwxr-sr-x | ||
+ | 4 -rw-r-S--- | ||
+ | 0 drwxr-sr-x | ||
+ | 4 -rw-r-S--- | ||
+ | 0 drwxr-sr-x | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On affiche le contenu des sous-répertoires. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -alsR / | ||
+ | |||
+ | / | ||
+ | total 0 | ||
+ | 0 drwxr-sr-x 3 apache apache 16 3 juin 20:35 . | ||
+ | 0 drwxr-s--- 6 apache apache 89 3 juin 20:35 .. | ||
+ | 0 drwxr-sr-x 2 apache apache 42 3 juin 20:35 90 | ||
+ | |||
+ | / | ||
+ | total 180 | ||
+ | 0 drwxr-sr-x 2 apache apache | ||
+ | 0 drwxr-sr-x 3 apache apache | ||
+ | 180 -rw-r--r-- 1 apache apache 183095 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -alsR / | ||
+ | |||
+ | / | ||
+ | total 0 | ||
+ | 0 drwxr-sr-x 3 apache apache 15 3 juin 20:35 . | ||
+ | 0 drwxr-s--- 6 apache apache 89 3 juin 20:35 .. | ||
+ | 0 drwxr-sr-x 3 apache apache 16 3 juin 20:35 9 | ||
+ | |||
+ | / | ||
+ | total 0 | ||
+ | 0 drwxr-sr-x 3 apache apache 16 3 juin 20:35 . | ||
+ | 0 drwxr-sr-x 3 apache apache 15 3 juin 20:35 .. | ||
+ | 0 drwxr-sr-x 3 apache apache 42 3 juin 20:35 90 | ||
+ | |||
+ | / | ||
+ | total 0 | ||
+ | 0 drwxr-sr-x 3 apache apache | ||
+ | 0 drwxr-sr-x 3 apache apache | ||
+ | 0 drwxr-sr-x 2 apache apache 132 3 juin 20:35 But_du_cahier-201.03_APT.png | ||
+ | |||
+ | / | ||
+ | total 288 | ||
+ | 0 drwxr-sr-x 2 apache apache | ||
+ | 0 drwxr-sr-x 3 apache apache | ||
+ | 12 -rw-r--r-- 1 apache apache | ||
+ | 52 -rw-r--r-- 1 apache apache | ||
+ | 224 -rw-r--r-- 1 apache apache 226306 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ===== Formats de fichiers autorisés ===== | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | Par défaut, les seuls formats de fichiers autorisés sont: //png//, //gif//, //jpg//, //jpeg// et //webp//. | ||
+ | |||
+ | Pour remédier à cette situation, il faut éditer le fichier '' | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-079.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | On ajoute, à la fin du fichier '' | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat >> / | ||
+ | |||
+ | ##### *********************** | ||
+ | # 2018-05-19_22h48 HNE // Michel-André | ||
+ | # On ajoute à la fin du fichier les paramétrages spécifiques (pour bien différencier | ||
+ | # l' | ||
+ | # la maintenance. | ||
+ | |||
+ | # Limite de taille de fichier, ici 50MB | ||
+ | $wgMaxUploadSize = 1024*1024*50; | ||
+ | |||
+ | # Doit-on vérifier l' | ||
+ | $wgCheckFileExtensions = true; | ||
+ | |||
+ | # Les extensions autorisées | ||
+ | $wgFileExtensions = array( ' | ||
+ | |||
+ | # Les extensions spécifiquement interdites | ||
+ | # HTML may contain cookie-stealing JavaScript and web bugs | ||
+ | # PHP scripts may execute arbitrary code on the server | ||
+ | # Other types that may be interpreted by some servers | ||
+ | # May contain harmful executables for Windows victims | ||
+ | $wgFileBlacklist = array( ' | ||
+ | |||
+ | EOT | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-008.png? | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | ... | ||
+ | # Limite de taille de fichier, ici 50MB | ||
+ | $wgMaxUploadSize = 1024*1024*50; | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | On vérifie notre ajout au fichier '' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# tail -23 / | ||
+ | |||
+ | ##### *********************** | ||
+ | # 2018-05-19_22h48 HNE // Michel-André | ||
+ | # On ajoute à la fin du fichier les paramétrages spécifiques (pour bien différencier | ||
+ | # l' | ||
+ | # la maintenance. | ||
+ | |||
+ | # Limite de taille de fichier, ici 50MB | ||
+ | $wgMaxUploadSize = 1024*1024*50; | ||
+ | |||
+ | # Doit-on vérifier l' | ||
+ | $wgCheckFileExtensions = true; | ||
+ | |||
+ | # Les extensions autorisées | ||
+ | $wgFileExtensions = array( ' | ||
+ | |||
+ | # Les extensions spécifiquement interdites | ||
+ | # HTML may contain cookie-stealing JavaScript and web bugs | ||
+ | # PHP scripts may execute arbitrary code on the server | ||
+ | # Other types that may be interpreted by some servers | ||
+ | # May contain harmful executables for Windows victims | ||
+ | $wgFileBlacklist = array( ' | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | On vérifie dans l' | ||
+ | |||
+ | **Accueil -> Importer un fichier**. | ||
+ | </ | ||
+ | <WRAP column 62%> | ||
+ | |{{ Images_Cahier-201-03-080.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Logo du wiki ===== | ||
+ | |||
+ | La taille maximale pour un logo avec l' | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | ==== Importation du fichier de notre logo ==== | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | **Importer un fichier**. | ||
+ | |{{ Images_Cahier-201-03-081.png? | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | **Parcourir**. | ||
+ | |{{ Images_Cahier-201-03-082.png? | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-083.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-084.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | On claque sur le nom du fichier **-> Copier l' | ||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-085.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | On voit où se trouve le fichier de notre logo. | ||
+ | |||
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | Le répertoire racine de notre site est: '' | ||
+ | |||
+ | Le chemin relatif du fichier est donc: ''/ | ||
+ | |||
+ | ● On spécifie notre logo à la fin du fichier de configuration '' | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat >> / | ||
+ | |||
+ | ##### *********************** | ||
+ | # Le logo de Micronator | ||
+ | $wgLogo = " | ||
+ | |||
+ | EOT | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# tail -5 / | ||
+ | |||
+ | ##### *********************** | ||
+ | # Le logo de Micronator | ||
+ | $wgLogo = " | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 20%> | ||
+ | On se rend à la page d' | ||
+ | |||
+ | Notre logo apparaît. | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | |||
+ | </ | ||
+ | <WRAP column 72%> | ||
+ | |{{ Images_Cahier-201-03-086.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | \\ | ||
+ | |||
+ | ====== Semantic MediaWiki (SMW) ====== | ||
+ | |||
+ | // | ||
+ | Semantic MediaWiki //(SMW)// est une extension de MediaWiki – l' | ||
+ | |||
+ | Là où SMW est utile | ||
+ | |||
+ | Semantic MediaWiki introduit certaines balises supplémentaires dans le texte wiki qui permettent aux utilisateurs d' | ||
+ | |||
+ | ===== LocalSettings.php ===== | ||
+ | |||
+ | ==== Paramètre $wgShellLocale ==== | ||
+ | |||
+ | Il nous faut changer le paramètre '' | ||
+ | |||
+ | // | ||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | On se rend dans le répertoire racine de notre MediaWiki. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cd / | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# pwd | ||
+ | |||
+ | / | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On fait une sauvegarde du fichier. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# cp LocalSettings.php | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als LocalSettings.php* | ||
+ | |||
+ | 8 -rw-r-S--- 1 apache apache 7092 3 juin 21:24 LocalSettings.php | ||
+ | 8 -rw-r----- 1 root | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On affiche le paramètre. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# cat LocalSettings.php | grep wgShellLocale | ||
+ | |||
+ | $wgShellLocale = " | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On change la valeur du paramètre de: // | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# sed -i ' | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# cat LocalSettings.php | grep wgShellLocale | ||
+ | |||
+ | $wgShellLocale = " | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ===== Composer ===== | ||
+ | |||
+ | // | ||
+ | La méthode recommandée pour installer Semantic MediaWiki est d' | ||
+ | |||
+ | ==== Allow php access to remote files ==== | ||
+ | |||
+ | <WRAP column 32%> | ||
+ | L'// | ||
+ | |||
+ | Il nous faut modifier temporairement l' | ||
+ | |||
+ | **Configuration -> Paramètres PHP ->** onglet | ||
+ | |||
+ | On coche //**Allow php access to remote files**// **-> SOUMETTRE**. | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-03-087.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== mbstring ==== | ||
+ | |||
+ | L' | ||
+ | |||
+ | On s' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# php --re mbstring | head -n 1 | ||
+ | |||
+ | Extension [ < | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On s' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# pwd | ||
+ | |||
+ | / | ||
+ | [root@tchana mediawiki] | ||
+ | </ | ||
+ | |||
+ | On télécharge l'// | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# wget http:// | ||
+ | |||
+ | --2019-06-03 22: | ||
+ | Résolution de getcomposer.org (getcomposer.org)... 142.44.245.229, | ||
+ | Connexion vers getcomposer.org (getcomposer.org)|142.44.245.229|: | ||
+ | requête HTTP transmise, en attente de la réponse...200 OK | ||
+ | Longueur: 263790 (258K) [application/ | ||
+ | Sauvegarde en : «installer» | ||
+ | |||
+ | 100%[==================================================> | ||
+ | |||
+ | 2019-06-03 22:59:06 (1,58 MB/s) - «installer» sauvegardé [263790/ | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als installer | ||
+ | |||
+ | 260 -rw-r--r-- 1 root apache 263790 29 janv. 09:19 installer | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On installe // | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# php installer | ||
+ | |||
+ | All settings correct for using Composer | ||
+ | Downloading... | ||
+ | |||
+ | Composer (version 1.8.5) successfully installed to: / | ||
+ | Use it: php composer.phar | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie l' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als composer.phar | ||
+ | |||
+ | 1872 -rwxr-xr-x 1 root apache 1914314 | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On supprime le fichier installeur. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# rm installer | ||
+ | |||
+ | rm : supprimer fichier « installer » ? o | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als insta* | ||
+ | |||
+ | ls: impossible d' | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ===== Installation de Semantic MediaWiki avec Composer ===== | ||
+ | |||
+ | ==== Préparation ==== | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# php composer.phar install --no-plugins --no-scripts | ||
+ | |||
+ | Do not run Composer as root/super user! See https:// | ||
+ | Loading composer repositories with package information | ||
+ | Updating dependencies (including require-dev) | ||
+ | Package operations: 49 installs, 3 updates, 0 removals | ||
+ | - Updating pear/ | ||
+ | This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost. | ||
+ | Installing ' | ||
+ | Downloading (100%) | ||
+ | - Updating pear/ | ||
+ | ... | ||
+ | - Installing wmde/ | ||
+ | monolog/ | ||
+ | ... | ||
+ | monolog/ | ||
+ | symfony/ | ||
+ | ... | ||
+ | symfony/ | ||
+ | psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.) | ||
+ | psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn' | ||
+ | wikimedia/ | ||
+ | sebastian/ | ||
+ | phpunit/ | ||
+ | phpunit/ | ||
+ | phpunit/ | ||
+ | Package phpunit/ | ||
+ | Writing lock file | ||
+ | Generating optimized autoload files | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Installation de la version 3.0 de SMW ==== | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# php composer.phar require mediawiki/ | ||
+ | |||
+ | Do not run Composer as root/super user! See https:// | ||
+ | ./ | ||
+ | > ComposerHookHandler:: | ||
+ | Loading composer repositories with package information | ||
+ | Updating dependencies (including require-dev) | ||
+ | Package operations: 23 installs, 1 update, 0 removals | ||
+ | - Installing composer/ | ||
+ | ... | ||
+ | - Installing mediawiki/ | ||
+ | mediawiki/ | ||
+ | Writing lock file | ||
+ | Generating optimized autoload files | ||
+ | > ComposerVendorHtaccessCreator:: | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Activation de SMW ==== | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat >> LocalSettings.php <<' | ||
+ | |||
+ | ##### *********************** | ||
+ | # EXTENSION: | ||
+ | # Semantic MediaWiki introduit certaines balises supplémentaires dans le texte wiki qui | ||
+ | # permettent aux utilisateurs d' | ||
+ | require_once " | ||
+ | enableSemantics( ' | ||
+ | |||
+ | EOT | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# tail -7 LocalSettings.php | ||
+ | |||
+ | ##### *********************** | ||
+ | # EXTENSION: | ||
+ | # Semantic MediaWiki introduit certaines balises supplémentaires dans le texte wiki qui | ||
+ | # permettent aux utilisateurs d' | ||
+ | require_once " | ||
+ | enableSemantics( ' | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== setupStore.php ==== | ||
+ | |||
+ | Configuration du système de stockage SMW actuellement sélectionné dans '' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# cd extensions/ | ||
+ | |||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | / | ||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | === Installation et mise à niveau de la base de données === | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | Selected storage engine: " | ||
+ | |||
+ | Setting up standard database configuration for SMW ... | ||
+ | |||
+ | Checking table smw_object_ids ... | ||
+ | Table not found, now creating... | ||
+ | ... done. | ||
+ | Checking index structures for table smw_object_ids ... | ||
+ | ... | ||
+ | Database initialized completed. | ||
+ | |||
+ | Running table optimization (this may take a moment) ... | ||
+ | |||
+ | Checking table smw_object_ids ... | ||
+ | ... analyze, optimize done. | ||
+ | ... | ||
+ | Optimization completed. | ||
+ | |||
+ | Adding property statistics rebuild job ... | ||
+ | ... done. | ||
+ | |||
+ | Adding entity disposer job ... | ||
+ | ... done. | ||
+ | |||
+ | Setting upgrade key ... | ||
+ | ... done. | ||
+ | |||
+ | Import of default.json ... | ||
+ | ... creating MediaWiki: | ||
+ | ... creating MediaWiki: | ||
+ | ... creating MediaWiki: | ||
+ | ... creating Attribut: | ||
+ | ... creating Attribut: | ||
+ | ... creating Attribut: | ||
+ | ... creating Attribut: | ||
+ | ... done. | ||
+ | |||
+ | Import processing completed. | ||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | ==== Ajustement des droits, propriétaire et groupe ==== | ||
+ | |||
+ | On renforce la sécurité de l’accès aux fichiers <wrap em> | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | On répète l' | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | On ajuste __**R**__écursivement le // | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | Fichiers cachés. | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | [root@tchana maintenance]# | ||
+ | </ | ||
+ | |||
+ | ===== Fonctions administrateur et base de données ===== | ||
+ | |||
+ | Deux étapes sont nécessaires: | ||
+ | |||
+ | - Installation et mise à niveau __de la base de données__. | ||
+ | - Réparation et mise à niveau __des données__. | ||
+ | |||
+ | ==== Installation et mise à niveau de la base de données ==== | ||
+ | |||
+ | Cette étape a été complétée à la section précédente [[nethserver_201_cahier_03_mediawiki# | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | <WRAP column 40%> | ||
+ | On recherche la page **Special: | ||
+ | </ | ||
+ | <WRAP column 52%> | ||
+ | |{{ Images_Cahier-201-03-088.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On clique le lien **Spécial: | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-089.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | À l' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-090.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Tout s'est bien passé. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-091.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ==== Réparation et mise à niveau des données ==== | ||
+ | |||
+ | <WRAP column 40%> | ||
+ | On recherche la page **Special: | ||
+ | </ | ||
+ | <WRAP column 52%> | ||
+ | |{{ Images_Cahier-201-03-092.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On clique le lien **Spécial: | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-093.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | À l' | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Cette requête prend un certain temps //(plus de 20-30 minutes ou beaucoup plus)//. | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-094.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | Après quelques minutes, on rafraîchit la page pour voir la progression. | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-095.png? | ||
+ | |||
+ | |{{ Images_Cahier-201-03-096.png? | ||
+ | |||
+ | |{{ Images_Cahier-201-03-097.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | === Accélération de la mise à jour des données === | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | |||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Une fois l' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-098.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Allow php access to remote files ==== | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | {{Images_Cahier-101-03-008.png? | ||
+ | |||
+ | **Configuration -> Paramètres PHP ->** onglet **Php V7.2 SCL**. | ||
+ | |||
+ | On décoche //**Allow php access to remote files**// **-> SOUMETTRE**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-099.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Vérification de l' | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Si on n'est pas certain du bon déroulement des opérations, | ||
+ | **Accueil -> Pages spéciales -> Données et outils -> Version ->** cadre **Extensions installées**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-100.png? | ||
+ | </ | ||
+ | |||
+ | ===== Création d'une page classique ===== | ||
+ | |||
+ | Nous allons créer une page classique que nous appellerons **TestSMW**. | ||
+ | |||
+ | ☑ On recherche cette page. Comme elle n' | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-101.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-102.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ☑ On entre le texte ci-dessous pour vérifier que Semantic Mediawiki affichera la propriété '' | ||
+ | |||
+ | < | ||
+ | Property test: [[testproperty:: | ||
+ | </ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | ☑ On donne une description sous // | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-103.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | ☑ Si on est satisfait de la page, on clique **Enregistrer**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-104.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | ☑ Notre page apparaît et Semantic MediaWiki affiche les propriétés de la page. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-105.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | ☑ Après avoir enregistré la page, on peut aussi cliquer sur le lien **Chercher les propriétés** dans la barre d' | ||
+ | Cette vue affiche // | ||
+ | </ | ||
+ | <WRAP column 17%> | ||
+ | |{{ Images_Cahier-201-03-106.png? | ||
+ | </ | ||
+ | <WRAP column 53%> | ||
+ | |{{ Images_Cahier-201-03-107.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | \\ | ||
+ | |||
+ | ====== CharInsert ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | **CharInsert** est une extension qui crée des liens // | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Ci-contre, les boutons que nous voulons ultimement obtenir pour faciliter la création de pages. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-108.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Téléchargement ===== | ||
+ | |||
+ | //Adresse de téléchargement:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On télécharge le fichier de l' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-109.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On téléverse le fichier '' | ||
+ | |||
+ | ''/ | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-110.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | Si ce n'est déjà fait, on ouvre une session PuTTY vers le serveur et on se rend dans le répertoire des extensions. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana maintenance]# | ||
+ | |||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | / | ||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | On vérifie que l' | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | 24 -rw-r--r-- 1 root apache 22356 4 juin 00:39 CharInsert-REL1_31-b5f34be.tar.gz | ||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | ===== Extraction du fichier tar.gz ===== | ||
+ | |||
+ | On extraie. | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | CharInsert/ | ||
+ | CharInsert/ | ||
+ | CharInsert/ | ||
+ | ... | ||
+ | CharInsert/ | ||
+ | CharInsert/ | ||
+ | CharInsert/ | ||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | 4 drwxr-xr-x 6 sssd polkitd 4096 17 avril 2018 CharInsert/ | ||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | On supprime le fichier '' | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | rm : supprimer fichier « CharInsert-REL1_31-b5f34be.tar.gz » ? o | ||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | ==== Ajustement des droits, propriétaire et groupe ==== | ||
+ | |||
+ | On renforce la sécurité de l’accès aux fichiers <wrap em> | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | On répète l' | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | On ajuste __**R**__écursivement le propriétaire: | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | Les fichiers cachés. | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | On vérifie, | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | 4 drwxr-s--- 6 apache apache 4096 17 avril 2018 CharInsert | ||
+ | [root@tchana extensions]# | ||
+ | </ | ||
+ | |||
+ | ===== LocalSettings.php ===== | ||
+ | |||
+ | Il faut maintenant modifier le fichier '' | ||
+ | |||
+ | On se rend dans le répertoire racine du wiki. | ||
+ | |||
+ | < | ||
+ | [root@tchana extensions]# | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On fait une sauvegarde du fichier qu'on s' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# cp LocalSettings.php | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -ls LocalSettings.php_avant_CharInsert | ||
+ | |||
+ | 8 -rw-r----- 1 root apache 7426 4 juin 00:52 LocalSettings.php_avant_CharInsert | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat >> / | ||
+ | |||
+ | ##### *********************** | ||
+ | # EXTENSION: | ||
+ | # CharInsert is an extension that creates JavaScript links that when clicked, insert | ||
+ | # predefined text into the text box. | ||
+ | require_once( " | ||
+ | |||
+ | EOT | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# tail -7 LocalSettings.php | ||
+ | |||
+ | ##### *********************** | ||
+ | # EXTENSION: | ||
+ | # CharInsert is an extension that creates JavaScript links that when clicked, insert | ||
+ | # predefined text into the text box. | ||
+ | require_once( " | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ===== Vérification sur le site ===== | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | **Acceuil -> Pages spéciales -> Données et outils -> Version -> Extensions installées -> Greffons de l' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-111.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | En bas de la page, sous //**Balises étendues de l' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-112.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Édition des pages nécessaires à CharInsert ===== | ||
+ | |||
+ | Il nous faut maintenant éditer toutes les pages nécessaires à la définition de notre greffon. | ||
+ | |||
+ | ==== Page MediaWiki: | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Sur la même page, nous cliquons **insertion de caractères absents des claviers usuels**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-114.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | La page s' | ||
+ | |||
+ | **Modifier** pour éditer cette page. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-115.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On est prêt à entrer le texte de cette page... | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-116.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On ouvre un nouvel onglet dans le navigateur, on se rend au site [[http:// | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-117.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | On clique **View source**. | ||
+ | |{{ Images_Cahier-201-03-118.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | On sélectionne tout le texte **[Ctl + A]**, on le copie **[CTL + C]**... | ||
+ | |{{ Images_Cahier-201-03-119.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | * ... et on le colle **[CTL + V]**, dans la page **MediaWiki: | ||
+ | * On entre un commentaire: | ||
+ | |||
+ | < | ||
+ | Copié de: https:// | ||
+ | </ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On clique **Enregistrer**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-120.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Ce qui nous donne la page ci-contre. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-121.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-122.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Page MediaWiki: | ||
+ | |||
+ | La liste des gadgets disponibles est définie par la page **MediaWiki: | ||
+ | |||
+ | Nous allons éditer notre page **MediaWiki: | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Exemple de cette future page. //(Voir plus loin pour le texte à copier/ | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-123.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | === Syntaxe === | ||
+ | |||
+ | Format de la ligne de cette page. | ||
+ | |||
+ | < | ||
+ | * nom_du_gadget [options (peut être omis)] | nom-page1-utilisée | nom-page2-utilisée... | ||
+ | </ | ||
+ | |||
+ | Une ligne de définition commence par un ou plusieurs <wrap em> | ||
+ | |||
+ | Premier champ: | ||
+ | //**(Nom du gadget)**// | ||
+ | **->** Le premier champ " | ||
+ | **->** Forme générale: **nom**< | ||
+ | **->** Exemple: **Edittools**. | ||
+ | |||
+ | Deuxième champ:\\ | ||
+ | // | ||
+ | **->** Forme générale: **[option-1** < | ||
+ | **->** Exemple: **[ResourceLoader**< | ||
+ | |||
+ | ^Nom^Paramètres^Description^Depuis^ | ||
+ | | ResourceLoader|Aucun|Marque les scripts du gadget comme étant compatible avec [[http:// | ||
+ | | dependencies|Noms des modules ResourceLoader séparés par une virgule|Voir la [[http:// | ||
+ | | rights|Noms des privilèges séparés par une virgule|Rend le gadget visible dans les préférences uniquement aux utilisateurs qui ont les [[http:// | ||
+ | | default|Aucun|Rend le gadget actif par défaut pour tout le monde (même les IPs!). Les utilisateurs enregistrés peuvent toujours le désactiver dans leurs préférences.|1.18| | ||
+ | |||
+ | Troisième champ:\\ | ||
+ | //**(Pages JavaScript ou CSS)**//\\ | ||
+ | **->** Le troisième champ fait référence aux pages de codes JavaScript ou CSS qui construisent le gadget. Les noms de ces pages doivent respectivement se terminer par .js ou .css. Un gadget peut utiliser n' | ||
+ | **->** Forme générale: | ||
+ | **->** Exemple: **Edittools.js**. | ||
+ | |||
+ | Voici un extrait de la page **MediaWiki: | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | ... | ||
+ | * DotsSyntaxHighlighter[ResourceLoader]|DotsSyntaxHighlighter.js | ||
+ | * Edittools[ResourceLoader|default]|Edittools.js | ||
+ | * HotCat[ResourceLoader]|HotCat.js | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === Édition de la page MediaWiki: | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Sur notre site, on cherche la page: **MediaWiki: | ||
+ | |||
+ | Cliquer **Modifier**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-125.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | On entre le texte et la description ci-dessous, puis on enregistre. | ||
+ | |||
+ | < | ||
+ | * Edittools[ResourceLoader|default]|Edittools.js | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Le premier greffon | ||
+ | </ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Enregistrer. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-126.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Voilà, la page a été modifiée. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-127.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | === Vérification sur le site === | ||
+ | |||
+ | **Préférences -> Gadgets**. | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-128.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | |||
+ | ==== Page MediaWiki: | ||
+ | |||
+ | Le premier champ, "< | ||
+ | |||
+ | Le nom de cette page prend la forme suivante: **MediaWiki: | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | Pour notre gadget, le nom de la page sera: **MediaWiki: | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Sur notre site, on cherche la page: **MediaWiki: | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-129.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | La page n' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-130.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | On entre la ligne suivante. | ||
+ | |||
+ | < | ||
+ | ''''' | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On donne une description. | ||
+ | |||
+ | < | ||
+ | Le premier greffon | ||
+ | </ | ||
+ | |||
+ | **-> Enregistrer** | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-131.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | === Vérification sur le site === | ||
+ | |||
+ | On se rend à la page **Préférences -> Gadgets**. | ||
+ | |||
+ | Le gadget est toujours là et maintenant, la nouvelle description s' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-132.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ==== Page MediaWiki: | ||
+ | |||
+ | Sur notre site, on cherche la page: **MediaWiki: | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-133.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-134.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | On se rend sur le site [[http:// | ||
+ | <WRAP column 22%> | ||
+ | On cherche **MediaWiki: | ||
+ | On sélectionne tout le texte **[Ctl + A]** et on le copie **[Ctl + C]**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-135.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On revient sur notre site, on colle le texte **[Ctl + V]** sur notre page // | ||
+ | |||
+ | < | ||
+ | Pour le greffon Edittools | ||
+ | </ | ||
+ | |||
+ | Puis, on clique **Enregistrer**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-136.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Vérification finale ===== | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Sur notre site, à la page d' | ||
+ | |||
+ | Les boutons cliquables des balises sont là et ils sont bien définis. | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | Le menu déroulant // | ||
+ | |||
+ | Avec les extensions // | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-137.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Masquer une révision (RevisionDelete) ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | // | ||
+ | // | ||
+ | Référence:// | ||
+ | |||
+ | Cacher une version de l' | ||
+ | |||
+ | Cette fonctionnalité a la faculté de masquer/ | ||
+ | |||
+ | Lorsque masqué, le contenu de la révision ne peut être vu par aucun usager si celui-ci ne possède pas le droit // | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | Si la page est restaurée après une suppression, | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | ===== Propriétés de RevisionDelete ===== | ||
+ | |||
+ | Voici les changements qu'on peut apporter à la visibilité d'une révision de page; on peut masquer: | ||
+ | |||
+ | - le texte de la révision, | ||
+ | - l' | ||
+ | - le nom/adresse IP de l' | ||
+ | |||
+ | Les révisions masquées vont quand même apparaître dans l' | ||
+ | |||
+ | Pour la partie technique de ces fonctionnalités, | ||
+ | |||
+ | ===== Activation ===== | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | Pour l' | ||
+ | |||
+ | === Masquer une révision par un usager === | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | $wgGroupPermissions[' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | === Masquer une révision aux usagers === | ||
+ | |||
+ | <WRAP box> | ||
+ | < | ||
+ | $wgGroupPermissions[' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== LocalSettings.php ==== | ||
+ | |||
+ | Si ce n'est déjà fait, on se rend dans le répertoire racine de notre MediaWiki. | ||
+ | |||
+ | <WRAP box round> | ||
+ | < | ||
+ | [root@tchana ~]# cd / | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | On fait une sauvegarde du fichier qu'on s' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# cp LocalSettings.php LocalSettings.php_avant_deleterevision | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -ls LocalSettings.php_avant_deleterevision | ||
+ | |||
+ | 8 -rw-r----- 1 root apache 7664 4 juin 14:06 LocalSettings.php_avant_deleterevision | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | Ce paramètre va donner le droit // | ||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat >> / | ||
+ | |||
+ | ##### *********************** | ||
+ | # RevisionDelete | ||
+ | # | ||
+ | # Ce paramètre va donner le droit RevisionDelete à tous les administrateurs. Si on ajoute | ||
+ | # cette ligne dans LocalSettings.php, | ||
+ | # cocher sur chaque ligne des révisions de même qu'un bouton au-dessus et en dessous des | ||
+ | # révisions qui affichera " | ||
+ | # Les versions et événements supprimés seront encore présents dans l' | ||
+ | # et dans les journaux, mais leur contenu textuel sera inaccessible au public. Les autres | ||
+ | # administrateurs du Wiki de Micronator pourront toujours accéder au contenu caché et le | ||
+ | # restaurer à travers cette même interface, à moins que des restrictions supplémentaires ne | ||
+ | # soient mises en place. Contrairement à ce qu' | ||
+ | # ne sont pas effacées mais simplement cachées à la vue des usagers. | ||
+ | $wgGroupPermissions[' | ||
+ | |||
+ | EOT | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# tail -16 LocalSettings.php | ||
+ | |||
+ | ##### *********************** | ||
+ | # RevisionDelete | ||
+ | # | ||
+ | # Ce paramètre va donner le droit RevisionDelete à tous les administrateurs. Si on ajoute | ||
+ | # cette ligne dans LocalSettings.php, | ||
+ | # cocher sur chaque ligne des révisions de même qu'un bouton au-dessus et en dessous des | ||
+ | # révisions qui affichera " | ||
+ | # Les versions et événements supprimés seront encore présents dans l' | ||
+ | # et dans les journaux, mais leur contenu textuel sera inaccessible au public. Les autres | ||
+ | # administrateurs du Wiki de Micronator pourront toujours accéder au contenu caché et le | ||
+ | # restaurer à travers cette même interface, à moins que des restrictions supplémentaires ne | ||
+ | # soient mises en place. Contrairement à ce qu' | ||
+ | # ne sont pas effacées mais simplement cachées à la vue des usagers. | ||
+ | $wgGroupPermissions[' | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ==== Masquer une révision de la page " | ||
+ | |||
+ | Après avoir ajouté ces lignes dans '' | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-138.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On clique **Afficher l' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-139.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On peut sélectionner une version et la masquer en cliquant **Afficher/ | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-140.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On sélectionne une version et on clique **Afficher/ | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-141.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Cocher les __restrictions de visibilité__ qu'on veut masquer, donner une __raison__ et **Appliquer à la révision sélectionnée**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-142.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | On confirme en cliquant **Appliquer à la révision sélectionné**. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-143.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Losqu' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-144.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | === Entrée dans le journal === | ||
+ | |||
+ | **Acceuil -> Pages spéciales ->** cadre ** Outils pour les pages -> Voir les pages supprimées -> journal des suppressions**. | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-145.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | |{{ Images_Cahier-201-03-146.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Le journal affiche qu'on a modifié la visibilité d'une révision sur la page // | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | Il donne aussi la raison donnée pour le masquage: | ||
+ | < | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-147.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | === Masquer plusieurs révisions === | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Si on sélectionne plus d'une révisions... | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-148.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | ... une page un peu plus complexe s' | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-149.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | === Droits des groupes d' | ||
+ | |||
+ | **Acceuil -> Pages spéciales-> | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Une nouvelle ligne a été ajoutée. | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | {{ Images_Cahier-201-03-150.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Ajouts au menu principal ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | On veut ajouter une nouvelle ligne au menu principal. | ||
+ | |||
+ | - Nom de la nouvelle page: // | ||
+ | - Titre de la nouvelle ligne du menu: //**Aide pour RF-232**// | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | |||
+ | ===== Création de la page ===== | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | On crée une nouvelle page contenant des liens d'aide qu'on nomme: **AideDeRF232** et on y ajoute des liens vers des pages d' | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | Rechercher **AideDeRF232**. | ||
+ | |{{ Images_Cahier-201-03-151.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | Cliquer **AideDeRF232** pour créer la page. | ||
+ | |{{ Images_Cahier-201-03-152.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | Faire une liste à puces <wrap em> | ||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | Prendre tout le contenu de l' | ||
+ | |||
+ | < | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [http:// | ||
+ | * [https:// | ||
+ | * [https:// | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP column 52%> | ||
+ | Ce qui donnera la page ci-contre.\\ | ||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | </ | ||
+ | <WRAP column 25%> | ||
+ | |{{ Images_Cahier-201-03-153.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Ajout d'une nouvelle ligne au menu ===== | ||
+ | |||
+ | <WRAP column 22%> | ||
+ | Pour éditer le menu, il faut rechercher la page en incluant son espace de noms: **MediaWiki: | ||
+ | </ | ||
+ | <WRAP column 70%> | ||
+ | |{{ Images_Cahier-201-03-154.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | La page // | ||
+ | Dans le format: __Nom-de-la-page|Titre du menu__, on ajoute la nouvelle ligne <wrap hi>** < | ||
+ | |||
+ | <WRAP column 1%> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | **<wrap em> | ||
+ | |||
+ | </ | ||
+ | <WRAP column 32%> | ||
+ | < | ||
+ | * navigation | ||
+ | ** mainpage|mainpage-description | ||
+ | ** recentchanges-url|recentchanges | ||
+ | ** randompage-url|randompage | ||
+ | ** helppage|help-mediawiki | ||
+ | ** AideDeRF232|Aide pour RF-232 | ||
+ | * SEARCH | ||
+ | * TOOLBOX | ||
+ | * LANGUAGES | ||
+ | </ | ||
+ | |||
+ | **Prévisualiser -> Enregistrer**. | ||
+ | </ | ||
+ | <WRAP column 57%> | ||
+ | |{{ Images_Cahier-201-03-155.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | La nouvelle ligne est ajoutée au menu principal. | ||
+ | |{{ Images_Cahier-201-03-156.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | **Aide pour RF-232**, la page des liens d'aide apparaît. | ||
+ | |{{ Images_Cahier-201-03-157.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ===== Ajout d'un nouveau bloc au menu ===== | ||
+ | |||
+ | Au lieu d' | ||
+ | |||
+ | < | ||
+ | * navigation | ||
+ | ** mainpage|mainpage-description | ||
+ | ** recentchanges-url|recentchanges | ||
+ | ** randompage-url|randompage | ||
+ | ** helppage|help-mediawiki | ||
+ | * NethServer | ||
+ | ** AideDeRF232|Aide pour RF-232 | ||
+ | * SEARCH | ||
+ | * TOOLBOX | ||
+ | * LANGUAGES | ||
+ | </ | ||
+ | |||
+ | <WRAP column 32%> | ||
+ | |{{ Images_Cahier-201-03-158.png? | ||
+ | </ | ||
+ | <WRAP column 60%> | ||
+ | |{{ Images_Cahier-201-03-159.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Ouverture dans une nouvelle fenêtre: " | ||
+ | |||
+ | // | ||
+ | |||
+ | - Assigner une nouvelle cible par défaut aux liens externes //(faire ouvrir les liens dans une nouvelle fenêtre)// | ||
+ | - Ajouter l' | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat >> / | ||
+ | |||
+ | ##### *********************** | ||
+ | # Pour faire ouvrir les liens dans une nouvelle fenêtre. | ||
+ | # | ||
+ | $wgExternalLinkTarget = ' | ||
+ | |||
+ | EOT | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Si la valeur est mise à // | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | |||
+ | Lorsque la valeur est changée, les affichages doivent être rafraîchis pour rendre l' | ||
+ | |||
+ | Consulter aussi les liens: [[http:// | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Mise à jour de Mediawiki ====== | ||
+ | |||
+ | ===== Restez à jour ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | ===== Mise à jour ===== | ||
+ | |||
+ | On se rend dans le répertoire racine de notre MediaWiki. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cd / | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# pwd | ||
+ | |||
+ | / | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On met à jour. Toutes les dernières modifications concernant la branche que nous utilisons seront appliquées. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# git pull | ||
+ | |||
+ | remote: Counting objects: 5, done | ||
+ | remote: Finding sources: 100% (3/3) | ||
+ | remote: Total 3 (delta 2), reused 3 (delta 2) | ||
+ | Unpacking objects: 100% (3/3), done. | ||
+ | From https:// | ||
+ | | ||
+ | Updating 63a9098..c698e1b | ||
+ | Fast-forward | ||
+ | | ||
+ | 1 file changed, 1 insertion(+), | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On met à jour les sous-modules. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# git submodule update --init | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | Rien n'est retourné, il n' | ||
+ | |||
+ | ==== Ajustement des droits, propriétaire et groupe ==== | ||
+ | |||
+ | Ci-dessus, il y a eu <wrap em>1 insertion(+)</ | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# find . -type f -exec chmod 640 {} \; | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On répète l' | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# find . -type d -exec chmod 2750 {} \; | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On ajuste __**R**__écursivement le propriétaire: | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# chown -R apache: | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | Fichiers cachés. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# chown -R apache: | ||
+ | |||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana mediawiki]# ls -als | ||
+ | |||
+ | total 3404 | ||
+ | 4 drwxr-s--- 16 apache apache | ||
+ | 0 drwxr-xr-x | ||
+ | 8 -rw-r-S--- | ||
+ | ... | ||
+ | 4 -rw-r-S--- | ||
+ | ... | ||
+ | 8 -rw-r-S--- | ||
+ | ... | ||
+ | 4 drwxr-s--- 40 apache apache | ||
+ | [root@tchana mediawiki]# | ||
+ | </ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Mise à jour des Collections ====== | ||
+ | |||
+ | Présentement, | ||
+ | |||
+ | ===== Mises à jour ===== | ||
+ | |||
+ | On lance les mises à jour des deux Collections. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# yum update -y nethserver-php-scl nethserver-rh-mariadb102 | ||
+ | |||
+ | Modules complémentaires chargés : changelog, fastestmirror, | ||
+ | ... | ||
+ | * ce-base: mirror.atlanticmetro.net | ||
+ | ... | ||
+ | Résolution des dépendances | ||
+ | --> Lancement de la transaction de test | ||
+ | ---> Le paquet nethserver-php-scl.x86_64 0: | ||
+ | ... | ||
+ | Dépendances résolues | ||
+ | ... | ||
+ | Résumé de la transaction | ||
+ | ============================================================================================ | ||
+ | Installation | ||
+ | Mettre à jour 1 Paquet | ||
+ | |||
+ | Taille totale des téléchargements : 754 k | ||
+ | ... | ||
+ | Installation : php72-php-opcache-7.2.19-2.el7.remi.x86_64 | ||
+ | ... | ||
+ | Vérification : nethserver-php-scl-1.2.4-1.ns7.sdl.x86_64 | ||
+ | |||
+ | Dépendances installées : | ||
+ | php71-php-opcache.x86_64 0: | ||
+ | php73-php-opcache.x86_64 0: | ||
+ | |||
+ | Mis à jour : | ||
+ | nethserver-php-scl.x86_64 0: | ||
+ | |||
+ | Terminé ! | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_icone-201-003_Note.png? | ||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Mises à jour de NethServer ====== | ||
+ | |||
+ | ===== Serveur NethServer ===== | ||
+ | |||
+ | De temps à autre, il faut mettre à jour le Serveur NethServer pour diverses raisons: suite à des mises à jour des logiciels qui composent NethServer, failles de sécurité découvertes par des utilisateurs ou des développeurs, | ||
+ | |||
+ | <WRAP column 46%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-201-03-160.png? | ||
+ | </ | ||
+ | <WRAP column 46%> | ||
+ | \\ | ||
+ | \\ | ||
+ | À la fin de la mise à jour, **Recharger la page**. | ||
+ | |{{ Images_Cahier-201-03-161.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ===== Instantané VirtualBox ===== | ||
+ | |||
+ | {{Images_Cahier-101-03-004.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ====== Appendices ====== | ||
+ | |||
+ | ===== Écran conventionnel de démarrage ===== | ||
+ | |||
+ | <WRAP column 45%> | ||
+ | Si nous voulons voir l' | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | ''/ | ||
+ | </ | ||
+ | |{{ Images_Cahier-101-03-368.png? | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-101-03-367.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Suppression du paramètre rhgb ==== | ||
+ | |||
+ | Ligne originale dans le fichier ''/ | ||
+ | |||
+ | < | ||
+ | GRUB_CMDLINE_LINUX=" | ||
+ | </ | ||
+ | |||
+ | Après avoir enlevé le paramètre **rhgb**. | ||
+ | |||
+ | < | ||
+ | GRUB_CMDLINE_LINUX=" | ||
+ | </ | ||
+ | |||
+ | On signale le changement en régénérant le fichier de configuration. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# grub2-mkconfig -o / | ||
+ | |||
+ | Generating grub configuration file ... | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | done | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-005.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Table de mappe de clavier ===== | ||
+ | |||
+ | On affiche les différentes mappes de clavier(( **Table de mappe de clavier**: n.f. Disposition des touches d'un clavier.\\ // | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# localectl list-keymaps | grep ca | ||
+ | |||
+ | ca | ||
+ | ca-eng | ||
+ | ca-fr-dvorak | ||
+ | ca-fr-legacy | ||
+ | ca-multi | ||
+ | ca-multix | ||
+ | dvorak-ca-fr | ||
+ | es-cat | ||
+ | ph-capewell-dvorak | ||
+ | ph-capewell-qwerf2k6 | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On active le clavier // | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# localectl set-keymap ca-multi | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# localectl | ||
+ | |||
+ | | ||
+ | VC Keymap: ca-multi | ||
+ | X11 Layout: us | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ===== Fermeture automatique de session (session timeout) ===== | ||
+ | |||
+ | // | ||
+ | Par défaut //(à partir de NethServer 7.5.1804)//, | ||
+ | |||
+ | La commande ci-dessous définit **2** heures de délai d' | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# config setprop httpd-admin MaxSessionIdleTime 7200 MaxSessionLifeTime 57600 | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Désactivation des délais. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# config setprop httpd-admin MaxSessionIdleTime '' | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Fuseau horaire ===== | ||
+ | |||
+ | Pour le fuseau horaire, il existe un fichier pour // | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -ls / | ||
+ | |||
+ | 4 -rw-r--r-- | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | ==== Changement du fuseau horaire ==== | ||
+ | |||
+ | On affiche le fuseau horaire actuel. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -l / | ||
+ | |||
+ | lrwxrwxrwx 1 root root 37 19 mai 23:48 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On change le fuseau horaire pour celui de Montréal. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# timedatectl set-timezone America/ | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -l / | ||
+ | |||
+ | lrwxrwxrwx 1 root root 38 22 mai 14:02 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Voilà! Le fuseau horaire Montréal est récupéré... | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Certificat Let's Encrypt ===== | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Un certificat émis par l' | ||
+ | |||
+ | // | ||
+ | Let's Encrypt est une autorité de certification //(CA)// lancée le 3 décembre 2015 //(Bêta Version Publique)// | ||
+ | |||
+ | === Examen du certificat === | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | Si la demande de certificat a fonctionnée sans erreur, essayez de vous connecter à la page de l' | ||
+ | |||
+ | On se connecte à l' | ||
+ | |||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-369.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-370.png? | ||
+ | </ | ||
+ | <WRAP column 30%> | ||
+ | \\ | ||
+ | **Plus d' | ||
+ | |{{ Images_Cahier-101-03-371.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | <WRAP center> | ||
+ | <WRAP column 45%> | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-372.png? | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-373.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP center> | ||
+ | <WRAP column 45%> | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-374.png? | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-375.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Vérification par Qualsys SSLLabs ==== | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | Une fois que vous avez obtenu votre certificat, testez-le en vous rendant chez Qualsys SSLLabs, [[https:// | ||
+ | Soumettez le nom FQDN de votre domaine pour vérifier que le certificat fonctionne correctement. | ||
+ | |||
+ | <WRAP center> | ||
+ | <WRAP column 45%> | ||
+ | \\ | ||
+ | // | ||
+ | |{{ Images_Cahier-101-03-376.png? | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-377.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Répertoire well-known ==== | ||
+ | |||
+ | // | ||
+ | // | ||
+ | Pour un serveur branché directement à l' | ||
+ | |||
+ | On peut faire la demande de certificat à la page de l' | ||
+ | **Configuration | ||
+ | |||
+ | Pour plus de détails, voir le [[nethserver_101_cahier_05_vdsl_fqdn_internet_et_nethserver|Cahier-05]]: | ||
+ | |||
+ | __Pour un serveur branché directement à l' | ||
+ | |||
+ | **Création du fichier z_well-known.conf** | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | cat > / | ||
+ | Alias "/ | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | EOT | ||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# ls -als / | ||
+ | |||
+ | 4 -rw-r--r-- 1 root root 231 10 juin 11:03 / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | On affiche le contenu du fichier. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cat / | ||
+ | |||
+ | Alias "/ | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | **Sauvegarde du fichier** | ||
+ | |||
+ | On vérifie si le nom du fichier ''/ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | < | ||
+ | NouvelleInclusion="/ | ||
+ | if grep -Fxq " | ||
+ | then | ||
+ | # L' | ||
+ | echo -e "\nLe fichier custom.include contient déjà l' | ||
+ | else | ||
+ | # L' | ||
+ | echo -e " | ||
+ | echo -e " | ||
+ | fi | ||
+ | |||
+ | </ | ||
+ | |||
+ | On vérifie. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# cat / | ||
+ | |||
+ | / | ||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | |||
+ | Ci-dessus, il n'y a pas de ligne vide avant "< | ||
+ | |||
+ | **Redémarrage du démon httpd** | ||
+ | |||
+ | On redémarre le démon Apache afin qu'il relise ses fichiers de configuration. | ||
+ | |||
+ | < | ||
+ | [root@tchana ~]# systemctl restart httpd | ||
+ | |||
+ | [root@tchana ~]# | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | ===== Changement du mot de passe de root ===== | ||
+ | |||
+ | // | ||
+ | Réinitialiser le mot de passe de root est normalement une tâche simple si vous êtes déjà connecté avec les privilèges de root. Toutefois, si vous oubliez le mot de passe et devez le changer, les choses deviennent un peu plus difficiles.\\ | ||
+ | Le processus a changé de la version 6 de CentOS/RHEL //(Red Hat Enterprise Linux)// à la version 7. Auparavant, vous démarriez en **mode mono-utilisateur**, | ||
+ | |||
+ | {{Images_Cahier-101-03-003.png? | ||
+ | |||
+ | Si votre système Linux est en cours d' | ||
+ | |||
+ | Pour **CentOS 7**, le menu de démarrage vous laissera 5 secondes pour sélectionner le noyau du système d’exploitation à démarrer. Ces 5 secondes sont importantes, | ||
+ | |||
+ | Dans le menu de démarrage, appuyez sur " | ||
+ | |||
+ | {{ Images_Cahier-101-03-378.png? | ||
+ | \\ | ||
+ | |||
+ | Dans les options de // | ||
+ | |||
+ | < | ||
+ | rd.break | ||
+ | </ | ||
+ | |||
+ | {{ Images_Cahier-101-03-379.png? | ||
+ | \\ | ||
+ | |||
+ | Appuyez sur **[Ctrl]** + **[x]** pour démarrer avec ces options qui vous amèneront à l' | ||
+ | |||
+ | {{ Images_Cahier-101-03-380.png? | ||
+ | \\ | ||
+ | |||
+ | À ce stade, le système de fichiers racine est monté en mode lecture seule //(ro)// dans le répertoire ''/ | ||
+ | |||
+ | < | ||
+ | switch_root:/# | ||
+ | |||
+ | switch_root:/# | ||
+ | </ | ||
+ | |||
+ | {{ Images_Cahier-101-03-381.png? | ||
+ | \\ | ||
+ | |||
+ | Une fois le système de fichiers remonté, changez-le en une //**prison chroot**// afin que le répertoire ''/ | ||
+ | |||
+ | < | ||
+ | switch_root:/# | ||
+ | |||
+ | sh-4.2# | ||
+ | </ | ||
+ | |||
+ | {{ Images_Cahier-101-03-382.png? | ||
+ | \\ | ||
+ | |||
+ | À partir d'ici, le mot de passe de root peut être réinitialisé à l’aide de la commande '' | ||
+ | |||
+ | < | ||
+ | sh-4.2# passwd | ||
+ | |||
+ | Changing password for user root. | ||
+ | New password: Nouveau-mot-de-passe-de-root | ||
+ | Retype new passwd: Nouveau-mot-de-passe-de-root | ||
+ | passwd: all authentification tokens updated successfully. | ||
+ | sh-4.2# | ||
+ | </ | ||
+ | |||
+ | {{ Images_Cahier-101-03-383.png? | ||
+ | \\ | ||
+ | |||
+ | Si vous n' | ||
+ | |||
+ | On crée le fichier ''/ | ||
+ | |||
+ | < | ||
+ | sh-4.2# touch / | ||
+ | |||
+ | sh-4.2# | ||
+ | </ | ||
+ | |||
+ | {{Images_Cahier-101-03-006.png? | ||
+ | |||
+ | On quitte l' | ||
+ | |||
+ | < | ||
+ | sh-4.2# exit | ||
+ | |||
+ | exit | ||
+ | sh-4.2# | ||
+ | </ | ||
+ | |||
+ | On quitte le shell racine initramfs //(peut prendre un certain temps, être patient...)// | ||
+ | |||
+ | < | ||
+ | sh-4.2# exit | ||
+ | |||
+ | logout | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ==== Vérification ==== | ||
+ | |||
+ | __À la console du serveur__, vous devriez pouvoir vous connecter et utiliser le système avec le nouveau mot de passe que vous avez créé. | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== ERROR Failed to send host log message ===== | ||
+ | |||
+ | Cette erreur s' | ||
+ | |||
+ | {{ Images_Cahier-101-03-384.png? | ||
+ | \\ | ||
+ | |||
+ | <WRAP center> | ||
+ | <WRAP column 45%> | ||
+ | < | ||
+ | < | ||
+ | |{{ Images_Cahier-101-03-385.png? | ||
+ | \\ | ||
+ | Au retour, on amorce le Serveur NethServer et le message ne s' | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | \\ | ||
+ | **Affichage | ||
+ | |{{ Images_Cahier-101-03-386.png? | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | ===== Martian source ===== | ||
+ | |||
+ | Si dans le fichier journal ''/ | ||
+ | |||
+ | < | ||
+ | ...IPv4: martian source 192.168.1.1... | ||
+ | ...IPv4: martian source 192.168.1.1... | ||
+ | ...IPv4: martian source 192.168.1.1... | ||
+ | </ | ||
+ | |||
+ | ==== Passerelle du réseau de la carte enp0s3 ==== | ||
+ | |||
+ | On trouve notre passerelle en lançant un '' | ||
+ | |||
+ | < | ||
+ | [root@dorgee ~]# traceroute google.com | ||
+ | |||
+ | traceroute to google.com (172.217.165.14), | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | [root@dorgee ~]# | ||
+ | </ | ||
+ | L' | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 45%> | ||
+ | **Configuration | ||
+ | |||
+ | On change l'IP de la passerelle pour l'IP de l' | ||
+ | |||
+ | **SOUMETTRE**. | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-101-03-395.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | ==== Serveurs DNS ==== | ||
+ | |||
+ | // | ||
+ | ... Le **DNS de Cloudflare** est un bon DNS, car il est le plus rapide, mais aussi parce qu'ils ont pris les devants et s' | ||
+ | Le principal avantage bien sûr, c'est que contrairement au DNS de Google qui permet de mieux vous profiler pour vous balancer de la pub, on sait que Cloudflare ne trempe pas là dedans. Cela reste une boîte américaine, | ||
+ | |||
+ | // | ||
+ | |||
+ | //Autre référence:// | ||
+ | | ||
+ | |||
+ | // | ||
+ | |||
+ | <WRAP center> | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-101-03-396.png? | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-101-03-397.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | |||
+ | <WRAP column 45%> | ||
+ | **Configuration | ||
+ | |||
+ | On ajuste le //**DNS Primaire**// | ||
+ | |||
+ | {{Images_Cahier-101-03-005.png? | ||
+ | |||
+ | Le serveur //**DNS secondaire**// | ||
+ | |||
+ | **Soumettre**. | ||
+ | </ | ||
+ | <WRAP column 45%> | ||
+ | |{{ Images_Cahier-101-03-398.png? | ||
+ | </ | ||
+ | <WRAP clear></ | ||
+ | |||
+ | Si votre FAI filtre l' | ||
+ | [[https:// | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Serveur de production ===== | ||
+ | |||
+ | {{ Images_Cahier-201-03-165.png? | ||
+ | Une fois que vous maîtrisez tous les aspects de: MediaWiki, Let's Encrypt, Fail2ban, ClamAV et de BackupPC, vous pouvez créer un réseau de Production incluant un serveur MediaWiki, un serveur de sauvegardes et un serveur de développement; | ||
+ | <WRAP clear></ | ||
+ | \\ | ||
+ | \\ | ||
+ | {{NS-101_002_Banniere_Victoire.png? | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Crédits ====== | ||
+ | |||
+ | © 2016-2018-2019 RF-232\\ | ||
+ | Auteur: Michel-André\\ | ||
+ | Remerciement: | ||
+ | Intégré par: Michel-André Robillard CLP\\ | ||
+ | Contact: michelandre at micronator.org\\ | ||
+ | |||
+ | Répertoire de ce document: < | ||
+ | |||
+ | Historique des modifications: | ||
+ | |||
+ | ^Version^Date^Commentaire^Auteur| | ||
+ | |0.0.1|2016-05-04|Début.|Michel-André| | ||
+ | |0.0.2|2016-05-16|Correction index.htm pour index.html. Vérifié que tous les wiki sont de couleur Magenta. Enlevé le chapitre sur " | ||
+ | |0.1.0|2018-05-19|Mise à jour pour SME-9.2 et MediaWiki-1.30.0|Michel-André| | ||
+ | |0.1.1|2018-07-03|- Ajustements pour les référentiels remi-safe, smecontribs et epel.\\ - Ajout de l' | ||
+ | |0.1.2|2018-07-05|Ajout pour la sauvegarde/ | ||
+ | |0.2.0|2018-07-11|- Mise à jour pour smeserver-mysql57.\\ - Changements pour l' | ||
+ | |0.3.0|2018-11-24|Mise à jour pour vers la version MediaWiki-1.31.1/ | ||
+ | |4.0.0|2019-05-25|Adaptation pour NethServer-7.6.1810.|Michel-André| | ||
+ | |4.0.1|2019-05-25|Correction pour le ©.|Michel-André| | ||
+ | |4.1.0|2019-08-14|Ajustements pour DokuWiki.|Michel-André| | ||
+ | |4.1.1|2019-08-19|Suppression du " | ||
+ | |12345678901| | |12345678901| | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | ===== AVIS DE NON-RESPONSABILITÉ ===== | ||
+ | |||
+ | Ce document est uniquement destiné à informer. Les informations, | ||
+ | |||
+ | RF‑232 ne peut être tenu pour responsable de dommages de quelque nature que ce soit, y compris des dommages directs ou indirects, ainsi que des dommages consécutifs résultant de l' | ||
+ | |||
+ | Chaque internaute doit prendre toutes les mesures appropriées //(mettre à jour régulièrement son logiciel antivirus, ne pas ouvrir des documents suspects de source douteuse ou non connue)// de façon à protéger le contenu de son ordinateur de la contamination d' | ||
+ | |||
+ | Toute reproduction interdite | ||
+ | Vous reconnaissez et acceptez que tout le contenu de ce document, incluant mais sans s’y limiter, le texte et les images, sont protégés par le droit d’auteur, les marques de commerce, les marques de service, les brevets, les secrets industriels et les autres droits de propriété intellectuelle. Sauf autorisation expresse de RF-232, vous acceptez de ne pas vendre, délivrer une licence, louer, modifier, distribuer, copier, reproduire, transmettre, | ||
+ | |||
+ | ==== Avertissement==== | ||
+ | |||
+ | Bien que nous utilisions ici un vocabulaire issu des techniques informatiques, | ||
+ | \\ | ||
+ | \\ |