« NextCloud » : différence entre les versions

De Le Wiki de Lug
Aller à la navigation Aller à la recherche
Ligne 4 : Ligne 4 :


  # apt update && apt upgrade
  # apt update && apt upgrade
 
=== Archive NextCloud ===
# apt install unzip
# cd /tmp/
# wget <nowiki>https://download.nextcloud.com/server/releases/</nowiki><font color = green>nextcloud-21.0.1.zip</font>
# unzip <font color = green>nextcloud-21.0.1.zip</font> -d /var/www/
# rm <font color = green>nextcloud-21.0.1.zip</font>
# chown -R www-data. /var/www/nextcloud
=== Serveur SQL MariarDB ===
=== Serveur SQL MariarDB ===
Installation :
Installation :

Version du 11 avril 2021 à 21:04

LXC Ubuntu 20.04

Installation Serveur

Source autre source

# apt update && apt upgrade

Archive NextCloud

# apt install unzip
# cd /tmp/
# wget https://download.nextcloud.com/server/releases/nextcloud-21.0.1.zip
# unzip nextcloud-21.0.1.zip -d /var/www/
# rm nextcloud-21.0.1.zip
# chown -R www-data. /var/www/nextcloud

Serveur SQL MariarDB

Installation :

# apt install mariadb-server

On lance le script pour attribuer un mot de passe root, virer l'utilisateur anonyme etc.

# mysql_secure_installation
Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
... Success!

On créé la base de donnée pour NextCloud :

# mysql -U
MariaDB [(none)]> create database nextcloud;
MariaDB [(none)]> create user nextcloud@localhost identified by 'motdepasse';
MariaDB [(none)]> grant all privileges on nextcloud.* to nextcloud@localhost IDENTIFIED BY 'motdepasse';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> quit;