Installer Nextcloud en ligne de commande¶
$ cd /volume1/web/nextcloud
$ sudo -u http php72 occ maintenance:install --database "mysql" --database-name "nextcloud" --database-user "dbuser" --database-pass "dbpass" --admin-user "admin" --admin-pass "adminpass"
Password:
Cannot write into "config" directory!
This can usually be fixed by giving the webserver write access to the config directory
See https://docs.nextcloud.com/server/16/go.php?to=admin-dir_permissions
Or, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/16/go.php?to=admin-config
Corriger les autorisations du dossier nextcloud
# !/bin/bash
chown -R http:http /volume1/web/nextcloud/
chown -R http:http /volume1/web/nextcloud/apps/
chown -R http:http /volume1/web/nextcloud/config/
chown -R http:http /volume1/web/nextcloud/themes/
chown -R http:http /volume1/nextcloud/
chown http:http /volume1/web/nextcloud/.htaccess
find /volume1/web/nextcloud/ -type f -print0 | xargs -0 chmod 777
find /volume1/web/nextcloud/ -type d -print0 | xargs -0 chmod 777
find /volume1/nextcloud/ -type d -print0 | xargs -0 chmod 777
chmod 777 /volume1/web/nextcloud/.htaccess
Créer le dossier data en dehors de Document Root:
bruno@DS916:/volume1/nextcloud $ mkdir data
bruno@DS916:/volume1/nextcloud $ sudo chown -R http:http data/
bruno@DS916:/volume1/nextcloud $ sudo chmod 750 data/
$ sudo -u http php72 /volume1/web/nextcloud/occ
The current PHP memory limit is below the recommended value of 512MB.
Nextcloud is not installed - only a limited number of commands are available
Nextcloud 16.0.1
bruno@DS916:/volume1/web/nextcloud $ sudo -u http php72 occ maintenance:install --database "mysql" --database-name "nextcloud" --database-host "127.0.0.1:3307" --database-user "root" --database-pass "dbpass" --admin-user "admin" --admin-pass "adminpass" --verbose -vvv
The current PHP memory limit is below the recommended value of 512MB.
Nextcloud was successfully installed
Accès webdav: https://clicclac.synology.me/nextcloud/remote.php/dav/files/admin/
'overwrite.cli.url' => 'https://yourdomain.com',
‘memcache.local’ => ‘\\OC\\Memcache\\APCu’,
https://clicclac.synology.me/nextcloud/index.php/s/q6eEBA9ciqnfPsC
'cipher' => 'AES-256-CFB', The default cipher for encrypting files. Currently AES-128-CFB and AES-256-CFB are supported.
15552000
<VirtualHost *:443>
# Guarantee HTTPS for 1 Year including Sub Domains
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
</VirtualHost>
; preload
The hint "Limitations for Android-User: change to “ssl_ecdh_curve prime256v1;” instead of “ssl_ecdh_curve secp384r1;” " by Carsten Rieger on https://www.c-rieger.de/nextcloud-installation-guide/#c04 fixed the problem.
/usr/local/etc/apache22/sites-enabled $ sudo nano httpd-vhost.conf
Dernière mise à jour:
July 27, 2021