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 | ||
serveur_hebergement:nextcloud_et_collabora_online [2022/10/04 17:10] – fate | serveur_hebergement:nextcloud_et_collabora_online [2024/01/14 11:54] (Version actuelle) – [Prérequis] fate | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Nextcloud et Collabora Online ====== | ====== Nextcloud et Collabora Online ====== | ||
- | Nextcloud est un logiciel libre qui permet d' | + | Nextcloud est un logiciel libre qui permet d' |
Vous pouvez également créer et modifier des tableurs et fichiers docx/odt via Collabora Online. | Vous pouvez également créer et modifier des tableurs et fichiers docx/odt via Collabora Online. | ||
Ligne 16: | Ligne 16: | ||
On va activer le module apcu qui va gérer le cache de Nextcloud. Ouvrez le fichier php.ini : | On va activer le module apcu qui va gérer le cache de Nextcloud. Ouvrez le fichier php.ini : | ||
- | <code bash> | + | <code bash> |
Dans la partie Dynamic Extensions, ajoutez la ligne suivante : | Dans la partie Dynamic Extensions, ajoutez la ligne suivante : | ||
Ligne 27: | Ligne 27: | ||
==== Installation ==== | ==== Installation ==== | ||
- | On va récupérer le dépôt officiel en commençant | + | On va récupérer le dépôt officiel en commençant |
<code bash> | <code bash> | ||
cd / | cd / | ||
Ligne 67: | Ligne 67: | ||
< | < | ||
</ | </ | ||
- | |||
Il faut que l' | Il faut que l' | ||
+ | |||
+ | On va diriger les logs dans un fichier distinct, / | ||
+ | <code bash>< | ||
+ | par | ||
+ | <code bash>< | ||
+ | |||
+ | On va également limiter les logs au niveau warning et supérieur. Remplacez la ligne : | ||
+ | <code bash>< | ||
+ | par | ||
+ | <code bash>< | ||
+ | |||
+ | |||
+ | Après la ligne "</ | ||
+ | <code bash>< | ||
+ | |||
+ | Créez le fichier de log : | ||
+ | <code bash> | ||
+ | |||
+ | Changez le propriétaire du fichier : | ||
+ | <code bash> | ||
Redémarrez Collabora Online : | Redémarrez Collabora Online : | ||
Ligne 99: | Ligne 118: | ||
CustomLog ${APACHE_LOG_DIR}/ | CustomLog ${APACHE_LOG_DIR}/ | ||
ErrorLog ${APACHE_LOG_DIR}/ | ErrorLog ${APACHE_LOG_DIR}/ | ||
- | | + | |
- | | + | SSLEngine on |
- | SSLCertificateFile / | + | SSLCertificateFile / |
- | SSLCertificateKeyFile / | + | SSLCertificateKeyFile / |
- | + | ||
- | # HSTS (mod_headers is required) (15768000 seconds = 6 months) | + | |
- | Header always set Strict-Transport-Security " | + | |
- | + | ||
- | </ | + | |
# Encoded slashes need to be allowed | # Encoded slashes need to be allowed | ||
Ligne 145: | Ligne 159: | ||
</ | </ | ||
| | ||
- | # modern configuration, | ||
- | SSLProtocol | ||
- | SSLCipherSuite | ||
- | SSLHonorCipherOrder | ||
- | SSLCompression | ||
- | SSLSessionTickets | ||
- | | ||
- | # OCSP Stapling, only in httpsd 2.3.3 and later | ||
- | SSLUseStapling | ||
- | SSLStaplingResponderTimeout 5 | ||
- | SSLStaplingReturnResponderErrors off | ||
- | SSLStaplingCache | ||
</ | </ | ||
Ligne 165: | Ligne 167: | ||
<code bash> | <code bash> | ||
+ | Passons à Nextcloud. | ||
+ | ===== Nextcloud ===== | ||
- | + | ==== Téléchargement ==== | |
- | + | ||
Téléchargez la dernière version de Nextcloud : | Téléchargez la dernière version de Nextcloud : | ||
Ligne 182: | Ligne 184: | ||
<code bash> | <code bash> | ||
- | ===== Création de la base de données | + | ==== Création de la base de données ==== |
Lancez MySQL : | Lancez MySQL : | ||
Ligne 202: | Ligne 204: | ||
<code sql> | <code sql> | ||
- | ===== Configuration | + | ==== Configuration |
Créez le fichier de configuration Apache2 (remplacez le nom de domaine) : | Créez le fichier de configuration Apache2 (remplacez le nom de domaine) : | ||
Ligne 212: | Ligne 214: | ||
DocumentRoot / | DocumentRoot / | ||
- | |||
ServerName nextcloud.domaine.fr | ServerName nextcloud.domaine.fr | ||
- | ServerAdmin fate@domaine.fr | ||
Redirect / https:// | Redirect / https:// | ||
Ligne 224: | Ligne 224: | ||
DocumentRoot / | DocumentRoot / | ||
- | |||
ServerName nextcloud.domaine.fr | ServerName nextcloud.domaine.fr | ||
- | ServerAdmin fate@domaine.fr | ||
LogLevel warn | LogLevel warn | ||
Ligne 232: | Ligne 230: | ||
ErrorLog ${APACHE_LOG_DIR}/ | ErrorLog ${APACHE_LOG_DIR}/ | ||
- | | + | SSLEngine on |
- | | + | SSLCertificateFile / |
- | SSLCertificateFile / | + | SSLCertificateKeyFile / |
- | SSLCertificateKeyFile / | + | #Header set Content-Security-Policy " |
- | #Header set Content-Security-Policy " | + | |
- | </ | + | |
< | < | ||
Ligne 253: | Ligne 248: | ||
</ | </ | ||
- | |||
- | # modern configuration, | ||
- | SSLProtocol | ||
- | SSLCipherSuite | ||
- | SSLHonorCipherOrder | ||
- | SSLCompression | ||
- | SSLSessionTickets | ||
- | |||
- | # OCSP Stapling, only in httpd 2.3.3 and later | ||
- | SSLUseStapling | ||
- | SSLStaplingResponderTimeout 5 | ||
- | SSLStaplingReturnResponderErrors off | ||
- | SSLStaplingCache | ||
</ | </ | ||
Ligne 275: | Ligne 257: | ||
<code bash> | <code bash> | ||
- | ===== Installation de Nextcloud | + | ==== Installation de Nextcloud ==== |
Allez à l' | Allez à l' | ||
Ligne 291: | Ligne 273: | ||
{{: | {{: | ||
- | Nextcloud est maintenant installé. Passons à l' | + | Nextcloud est maintenant installé. Passons à la configuration. |
- | ===== Configuration de Nextcloud | + | ==== Configuration de Nextcloud ==== |
- | Ouvrez | + | Cliquez sur l' |
- | <code bash> | + | Allez dans la partie " |
- | Ajoutez la ligne suivante pour activer le cache via APCu : | + | Cliquez de nouveau sur l' |
- | <code bash>'memcache.local' | + | Allez dans Administration |
+ | Allez maintenant dans Administration > Nextcloud Office et cliquez sur " | ||
+ | {{: | ||
+ | Sur le serveur, il va falloir créer une tâche cron avec l' | ||
+ | <code bash> | ||
+ | Si on vous demande quel éditeur choisir, choisissez nano. | ||
+ | Ajoutez la ligne suivante pour exécuter le script cron.php toutes les 5 minutes : | ||
+ | <code bash> | ||
+ | Il ne nous reste plus qu'à activer le cache. Ouvrez le fichier de configuration de Nextcloud : | ||
+ | <code bash> | ||
+ | Ajoutez la ligne suivante : | ||
+ | <code bash>' | ||
- | + | Voila. Nextcloud est installé et vous pouvez créer et éditer des fichiers type Word et Excel. | |
- | ===== Memory caching ===== | + | |
- | + | ||
- | + | ||
- | APCu | + | |
- | + | ||
- | APCu is a data cache, and it is available in most Linux distributions. On Red Hat/ | + | |
- | + | ||
- | After restarting your Web server, add this line to your config.php file: | + | |
- | + | ||
- | ' | + | |