« Nextcloud » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
Ligne 1 : | Ligne 1 : | ||
[[Category:Web]] | [[Category:Web]] | ||
[[Category:Ubuntu]] | [[Category:Ubuntu]] | ||
= | = Liens = | ||
* [https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html Background jobs] | |||
= [https://docs.nextcloud.com/server/17/admin_manual/installation/source_installation.html#apache-web-server-configuration Configuration] = | = [https://docs.nextcloud.com/server/17/admin_manual/installation/source_installation.html#apache-web-server-configuration Configuration] = | ||
Ligne 108 : | Ligne 93 : | ||
== [https://github.com/nextcloud/calendar Calendar] == | == [https://github.com/nextcloud/calendar Calendar] == | ||
= Installation sur Ubuntu 18.04 = | |||
<kode lang='bash'> | |||
cd /var/www | |||
wget https://download.nextcloud.com/server/releases/nextcloud-17.0.0.tar.bz2 | |||
tar -xvjf nextcloud-17.0.0.tar.bz2 | |||
sudo chown www-data:www-data -R /var/www/nextcloud | |||
# vérifier que les modules php suivant sont bien installés | |||
dpkg -l php-zip php-gd php-curl php-imagick | |||
</kode> | |||
<kode lang='mysql'> | |||
create database nextcloud; | |||
grant all privileges on nextcloud.* to 'nextcloud'@'localhost' identified by 'password'; | |||
flush privileges; | |||
</kode> | |||
= Erreurs = | = Erreurs = |
Version du 1 décembre 2019 à 10:51
Liens
Configuration
/etc/apache2/sites-available/nextcloud.conf |
<VirtualHost *:80>
ServerName nextcloud.domain.fr
Redirect / https://nextcloud.domain.fr/
</VirtualHost>
<VirtualHost _default_:443>
ServerName nextcloud.domain.fr
DocumentRoot /var/www/nextcloud
SSLCertificateFile /etc/letsencrypt/live/domain.fr/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.fr/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<FilesMatch "\.php$">
SSLOptions +StdEnvVars
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/nextcloud-error.log
CustomLog ${APACHE_LOG_DIR}/nextcloud-access.log combined
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15768000; preload"
</IfModule>
<Directory /var/www/nextcloud>
Options FollowSymlinks
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
|
Pretty URL
config/config.php |
'overwrite.cli.url' => 'https://nextcloud.domain.fr/',
'htaccess.RewriteBase' => '/',
|
sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess |
Server tuning
PHP
/var/www/nextcloud/.user.ini |
memory_limit=512M
|
/etc/php/7.2/fpm/php.ini |
[opcache]
opcache.enable=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=1
opcache.save_comments=1
|
PHP-FPM
/etc/php/7.2/fpm/pool.d/nextcloud.conf |
pm = dynamic
pm.max_children = 120
pm.start_servers = 12
pm.min_spare_servers = 6
pm.max_spare_servers = 18
|
MySQL
/etc/mysql/conf.d/mysql.cnf |
[mysqld]
innodb_buffer_pool_size=1G
innodb_io_capacity=4000
|
Apps
Installer des Apps:
- se connecter en admin
- cliquer sur l'icone du profile en haut à droite → Apps
Deck
Outils de gestion de taches similaire à Trello
Talk
Chat, video & audio calls
Calendar
Installation sur Ubuntu 18.04
cd /var/www
wget https://download.nextcloud.com/server/releases/nextcloud-17.0.0.tar.bz2
tar -xvjf nextcloud-17.0.0.tar.bz2
sudo chown www-data:www-data -R /var/www/nextcloud
# vérifier que les modules php suivant sont bien installés
dpkg -l php-zip php-gd php-curl php-imagick
|
create database nextcloud;
grant all privileges on nextcloud.* to 'nextcloud'@'localhost' identified by 'password';
flush privileges;
|
Erreurs
The PHP memory limit is below the recommended value of 512MB
/etc/php/7.2/apache2/php.ini |
memory_limit = 512M
|