Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
infrastructure:services:cloud:nextcloud:installation [27/04/2023 08:40] – Stéphane Paillet | infrastructure:services:cloud:nextcloud:installation [27/04/2023 09:47] (Version actuelle) – Stéphane Paillet | ||
---|---|---|---|
Ligne 249: | Ligne 249: | ||
</ | </ | ||
- | ===== Installation | + | ===== Install / conf PHP ===== |
+ | |||
+ | ==== Installation PHP ==== | ||
Nous installon PHP-fpm et les différents modules dont nous aurons besoin | Nous installon PHP-fpm et les différents modules dont nous aurons besoin | ||
< | < | ||
- | sudo aptitude | + | sudo apt install php-common php-imagick php8.2-apcu php8.2-bcmath php8.2-bz2 php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd php8.2-gmp php8.2-igbinary php8.2-imagick php8.2-imap php8.2-intl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-xml php8.2-zip |
</ | </ | ||
- | |||
- | ===== Tuning ===== | ||
==== php.ini ==== | ==== php.ini ==== | ||
Ligne 273: | Ligne 274: | ||
opcache.revalidate_freq=1 | opcache.revalidate_freq=1 | ||
</ | </ | ||
- | |||
==== PHP pool ==== | ==== PHP pool ==== | ||
- | Dans le fichier /etc/php/7.3/ | + | Dans le fichier /etc/php/8.2/ |
< | < | ||
[nextcloud] | [nextcloud] | ||
Ligne 299: | Ligne 299: | ||
env[TMPDIR] = /tmp | env[TMPDIR] = /tmp | ||
env[TEMP] = /tmp | env[TEMP] = /tmp | ||
+ | </ | ||
+ | |||
+ | ===== Postgresql ===== | ||
+ | |||
+ | ==== Installation Postgresql ==== | ||
+ | |||
+ | < | ||
+ | sudo apt install postgresql php8.2-pgsql | ||
+ | </ | ||
+ | |||
+ | ==== Création base / utilisateur ==== | ||
+ | |||
+ | < | ||
+ | create database nextcloud; | ||
+ | create user nextcloud with encrypted password ' | ||
+ | grant all privileges on database nextcloud to nextcloud; | ||
+ | </ | ||
+ | |||
+ | ===== Redis ===== | ||
+ | |||
+ | ==== Installation Redis ==== | ||
+ | |||
+ | < | ||
+ | sudo apt install redis-server php8.2-redis | ||
+ | </ | ||
+ | |||
+ | ==== Configuration Nextcloud ==== | ||
+ | |||
+ | Nous éditons le ficher de configuration Nextcloud pour ajouter la configuration de Redis | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | array ( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ), | ||
+ | </ | ||
+ | |||
+ | ===== Tuning ===== | ||
+ | |||
+ | ==== Tâches cron ==== | ||
+ | |||
+ | Nous configurons cron | ||
+ | |||
+ | < | ||
+ | sudo -u www-data crontab -e | ||
+ | </ | ||
+ | |||
+ | Nous ajoutons ceci à la fin du fichier | ||
+ | |||
+ | < | ||
+ | # Add the following line to the end of the file: (will call the cron script every 5 minutes) | ||
+ | */5 * * * * / | ||
+ | </ | ||
+ | |||
+ | ==== Pour gérer les thèmes ==== | ||
+ | |||
+ | Si la gestion des thèmes est configurée, | ||
+ | |||
+ | < | ||
+ | sudo apt install libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra | ||
</ | </ | ||
===== Liens ===== | ===== Liens ===== | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// |