Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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:36] Stéphane Pailletinfrastructure:services:cloud:nextcloud:installation [27/04/2023 09:47] (Version actuelle) Stéphane Paillet
Ligne 1: Ligne 1:
 ===== Installation Nextcloud ====== ===== Installation Nextcloud ======
 {{tag>cloud Nextcloud}} {{tag>cloud Nextcloud}}
 +
 +<WRAP center round important 60%>
 +Ce mode opératoire est en cours de rédaction et n'est pas finalisé.
 +</WRAP>
 +
 +
 Nextcloud est une application de stockage de fichiers en ligne. Nextcloud est une application de stockage de fichiers en ligne.
  
Ligne 243: Ligne 249:
 </code> </code>
  
-===== Installation PHP =====+===== 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
 <code> <code>
-sudo aptitude 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-pgsql php8.2-readline php8.2-redis php8.2-xml php8.2-zip+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
 </code> </code>
- 
-===== Tuning ===== 
  
 ==== php.ini ==== ==== php.ini ====
Ligne 267: Ligne 274:
 opcache.revalidate_freq=1 opcache.revalidate_freq=1
 </code> </code>
- 
  
 ==== PHP pool ==== ==== PHP pool ====
  
-Dans le fichier /etc/php/7.3/fpm/pool.d/nextcloud.conf nous saisissons ces éléments+Dans le fichier /etc/php/8.2/fpm/pool.d/nextcloud.conf nous saisissons ces éléments
 <code> <code>
 [nextcloud] [nextcloud]
Ligne 293: Ligne 299:
 env[TMPDIR] = /tmp env[TMPDIR] = /tmp
 env[TEMP] = /tmp env[TEMP] = /tmp
 +</code>
 +
 +===== Postgresql =====
 +
 +==== Installation Postgresql ====
 +
 +<code>
 +sudo apt install postgresql php8.2-pgsql
 +</code>
 +
 +==== Création base / utilisateur ====
 +
 +<code>
 +create database nextcloud;
 +create user nextcloud with encrypted password 'monmotdepasse';
 +grant all privileges on database nextcloud to nextcloud;
 +</code>
 +
 +===== Redis =====
 +
 +==== Installation Redis ====
 +
 +<code>
 +sudo apt install redis-server php8.2-redis
 +</code>
 +
 +==== Configuration Nextcloud ====
 +
 +Nous éditons le ficher de configuration Nextcloud pour ajouter la configuration de Redis
 +<code>
 +sudo vi /var/www/cloud.grohub.org/config/config.php
 +</code>
 +
 +<code>
 +  'filelocking.enabled' => true,
 +  'memcache.locking' => '\\OC\\Memcache\\Redis',
 +  'memcache.local' => '\\OC\\Memcache\\Redis',
 +  'memcache.distributed' => '\\OC\\Memcache\\Redis',
 +  'redis' => 
 +  array (
 +    'host' => 'localhost',
 +    'port' => 6379,
 +    'timeout' => 0.0,
 +    'password' => '',
 +  ),
 +</code>
 +
 +===== Tuning =====
 +
 +==== Tâches cron ====
 +
 +Nous configurons cron
 +
 +<code>
 +sudo -u www-data crontab -e
 +</code>
 +
 +Nous ajoutons ceci à la fin du fichier
 +
 +<code>
 +# Add the following line to the end of the file: (will call the cron script every 5 minutes)
 +*/5  *  *  *  * /usr/bin/php -f /var/www/cloud.grohub.org/cron.php
 +</code>
 +
 +==== Pour gérer les thèmes ====
 +
 +Si la gestion des thèmes est configurée, nous aurons besoin de manipuler des images
 +
 +<code>
 +sudo apt install libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra
 </code> </code>
  
 ===== Liens ===== ===== Liens =====
   * [[https://docs.nextcloud.com/server/latest/admin_manual/|documentation Nextcloud]]   * [[https://docs.nextcloud.com/server/latest/admin_manual/|documentation Nextcloud]]
 +  * [[https://nextcloud.com/|site de l'éditeur]]
  • infrastructure/services/cloud/nextcloud/installation.1682584618.txt.gz
  • Dernière modification : 27/04/2023 08:36
  • de Stéphane Paillet