Commit badb3416 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Mise à jour de la documentation (Installation Gearman/Elasticsearch/Chromium)

parent 68b48db9
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for doc/configuration/config-gearman.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ Installation du module Gearman de PHP :

```bash
# Installation du module Gearman PHP
apt install php8.2-gearman
apt install php8.4-gearman
```

Création de *Oscarworker* : 
+0 −0

Empty file deleted.

+38 −60
Changes for doc/install-config/extras/install-elasticsearch.md: 38 added lines, 60 removed lines.
Original line number Diff line number Diff line
# Elasticsearch

## Installation sous DEBIAN
## Installation de Elasticsearch 9 sous debian trixie

Cette précédure d'installation a été téstée sur debian Stretch

### Java 1.8.x

Commencer par vérifier la présence de Java
> https://www.elastic.co/docs/deploy-manage/deploy/self-managed/install-elasticsearch-with-debian-package

```bash
$ java -version
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-1~deb9u1-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
```
# public signing key
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg

S'il n'est pas installé, vous devez **installer Java depuis les dépôts officiels** :
# prérequis
apt install apt-transport-https

```bash
apt-get install default-jre
# sourcelist
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/9.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-9.x.list
```


### ElascticSearch

Commencez par vérifier si le paquet est disponible :

```bash
apt search elasticsearch
# Installation
apt install elasticsearch
```

### Configuration

### Ajout du dépôt officiel

Si le paquet n'est pas disponible, vous pouvez ajouter *ElasticSearch* au *sourcelist* debian :
Dans `/et/elasticsearch/elasticearch.yml` : 

Installez d'abord *apt-transport-https* :

```bash
apt-get install apt-transport-https
```yml
cluster.name: your-app
```

Puis ajoutez la ligne au sourcelist :
Relancer

```bash
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list
service elasticsearch start
```

Et chargé la clef :
Puis vérifier que le serveur répond : 

```bash
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
curl -k http://localhost:9200
{
  "name" : "ANAME",
  "cluster_name" : "your-app",
  "cluster_uuid" : "XXXXXXXXXXXXX",
  "version" : {
    "number" : "9.5.5",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "48acba663b09e70b115dd879329141506c377890",
    "build_date" : "2026-09-30T22:12:03.984586187Z",
    "build_snapshot" : false,
    "lucene_version" : "10.5.1",
    "minimum_wire_compatibility_version" : "8.19.0",
    "minimum_index_compatibility_version" : "8.0.0"
  },
  "tagline" : "You Know, for Search"
}
```


### Installation

Mettez à jour puis installez :
Activer en tant que service : 

```bash
apt update
apt install elasticsearch
systemctl daemon-reload
systemctl enable elasticsearch.service
```


### Vérifier la présence de ElasticSearch

La commande `service --status-all` va vous permettre de lister les services chargés par le système, vous devrier voir une ligne *ElasticSearch* :
@@ -126,24 +125,3 @@ update-rc.d elasticsearch defaults 95 10
service elasticsearch start
service elasticsearch stop
```

### Tester le service

Enfin, pour **tester si ElasticSearch réponds** :

```bash
$ curl localhost:9200
{
  "name" : "HaShKey",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "uidHash",
  "version" : {
    "number" : "5.6.8",
    "build_hash" : "688ecce",
    "build_date" : "2018-02-16T16:46:30.010Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}
```
+48 −24
Changes for doc/install-prod.md: 48 added lines, 24 removed lines.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ L'installation a été testée sous Debian

- Système linux (Debian, Ubuntu)
- Serveur web (Apache2)
- PHP 8.2.x (support LDAP, Postgresql, mcrypt, intl, DOM/XML, mbstring, gd, zip)
- PHP 8.4.x (support LDAP, Postgresql, mcrypt, intl, DOM/XML, mbstring, gd, zip)
- Postgresql 9.4+ (version 10 supportée)
- Annuaire LDAP (supann)

@@ -42,26 +42,30 @@ apt install apache2
# PHP + Modules PHP
apt install \
  php-pear \
  php8.2-bcmath \
  php8.2-bz2 \
  php8.2-cli \
  php8.2-curl \
  php8.2-dev \
  php8.2-dom \
  php8.2-gd \
  php8.2-gearman \
  php8.2-intl \
  php8.2-ldap \
  php8.2-mbstring \
  php8.2-pgsql \
  php8.2-ssh2 \
  php8.2-xml \
  php8.2-zip
  
# Installation WKHtmlToPdf/OpenSans
apt install wkhtmltopdf fonts-open-sans
  php8.4-bcmath \
  php8.4-bz2 \
  php8.4-cli \
  php8.4-curl \
  php8.4-dev \
  php8.4-dom \
  php8.4-gd \
  php8.4-gearman \
  php8.4-intl \
  php8.4-ldap \
  php8.4-mbstring \
  php8.4-pgsql \
  php8.4-ssh2 \
  php8.4-xml \
  php8.4-zip

apt install libapache2-mod-php8.4

# Installation Chromium (remplace wkhtmltopdf)
apt install -y --no-install-recommends chromium chromium-sandbox
```

> Sur DEBIAN "Trixie" 13.x, le paquet **wkhtmltopdf** n'est plus disponible.

[Configuration PHP](./configuration/config-php.md)

Installez également le client postgresql qui sera nécessaire pour importer la structure initiale de la base de donnée :
@@ -90,8 +94,8 @@ cd oscar
via [Composer](https://getcomposer.org/).

```bash
# Récupération de la dernière version 2.2.x de composer
wget https://getcomposer.org/download/2.2.24/composer.phar
# Récupération de la version 2.10.x
wget https://getcomposer.org/download/2.10.3/composer.phar

# On le place dans /bin
mv composer.phar /bin/composer
@@ -116,12 +120,16 @@ composer install --prefer-dist
Fichiers de base

```bash
cp config/autoload/local.php.dist config/autoload/local.php

# Fichier général
cp config/autoload/unicaen-app.local.php config/autoload/unicaen-app.local.php
cp config/autoload/unicaen-app.local.php.dist config/autoload/unicaen-app.local.php

# Authentification (LDAP/CAS/DB)
cp config/autoload/unicaen-auth.local.php config/autoload/unicaen-auth.local.php
cp config/autoload/unicaen-auth.local.php.dist config/autoload/unicaen-auth.local.php

# Module signature (Parapheur)
cp config/autoload/unicaen-signature.local.php config/autoload/unicaen-signature.local.php
cp config/autoload/unicaen-signature.local.php.dist config/autoload/unicaen-signature.local.php
```

Configuration éditable (Sera modifié depuis l'interface web)
@@ -167,6 +175,22 @@ cd ../../

[Installation de Elasticsearch](./install-config/extras/install-elasticsearch.md)


### Installation de nodejs

```bash
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
apt install nodejs
```

Installation de YARN
```bash
npm install --global yarn
cd ui
yarn install
cd ../
```

### Modèle de données

#### CAS 1 : Vous avez un serveur de base de données (Recommandé)