... | ... | @@ -6,11 +6,18 @@ Procédure d'installation de Nextcloud 17 |
|
|
|
|
|
## PHP 7.3
|
|
|
|
|
|
# apt install php7.3 php7.3-common php7.3-curl php7.3-xml php7.3-gd php7.3-json php7.3-mbstrings php7.3-zip php7.3-intl php7.3-pgsql php7.3-imagick libxml2
|
|
|
### Installation de php & apache
|
|
|
```
|
|
|
# apt install php7.3 php7.3-common php7.3-curl php7.3-xml php7.3-gd php7.3-json php7.3-mbstrings php7.3-zip php7.3-intl php7.3-pgsql php7.3-imagick libxml2
|
|
|
# apt install php7.3-fpm apache2
|
|
|
```
|
|
|
|
|
|
### Creation du pool PHP-FPM
|
|
|
|
|
|
# nano /etc/php/php7.3/fpm/pool.d/nextcloud.conf
|
|
|
```
|
|
|
|
|
|
Ajouter:
|
|
|
|
|
|
[nextcloud]
|
|
|
listen = /run/php/php7.3-fpm-nextcloud.sock
|
|
|
listen.owner = www-data
|
... | ... | @@ -32,23 +39,38 @@ Procédure d'installation de Nextcloud 17 |
|
|
env[TMP] = /tmp
|
|
|
env[TMPDIR] = /tmp
|
|
|
env[TEMP] = /tmp
|
|
|
```
|
|
|
|
|
|
Redémarrer FPM
|
|
|
|
|
|
# systemctl service php7.3-fpm.service
|
|
|
|
|
|
### Configuration PHP
|
|
|
|
|
|
# nano /etc/php/7.3/{apache2,fpm}/php.ini
|
|
|
memory_limit = 512M
|
|
|
|
|
|
|
|
|
Corriger:
|
|
|
|
|
|
` memory_limit = 512M `
|
|
|
|
|
|
# nano /etc/php/7.3/{apache2,cli,fpm}/php.ini
|
|
|
date.timezone = Europe/Zurich
|
|
|
|
|
|
Décommenter + Corriger:
|
|
|
|
|
|
`date.timezone = Europe/Zurich`
|
|
|
|
|
|
## PostgreSQL
|
|
|
|
|
|
# apt-get install postgresql postgresql-client
|
|
|
# sudo -u postgres psql -d template1
|
|
|
template1=# CREATE USER nextcloud CREATEDB;
|
|
|
template1=# CREATE DATABASE nextcloud OWNER nextcloud;
|
|
|
template1=# \password nextcloud
|
|
|
template1=# \q
|
|
|
Installer les paquets
|
|
|
|
|
|
# apt-get install postgresql postgresql-client
|
|
|
|
|
|
Créer l'utilisateur et la base de donnée
|
|
|
|
|
|
# sudo -u postgres psql -d template1
|
|
|
template1=# CREATE USER nextcloud CREATEDB;
|
|
|
template1=# CREATE DATABASE nextcloud OWNER nextcloud;
|
|
|
template1=# \password nextcloud
|
|
|
template1=# \q
|
|
|
|
|
|
|
|
|
[source](https://wiki.debian.org/PostgreSql)
|
... | ... | @@ -70,15 +92,24 @@ Procédure d'installation de Nextcloud 17 |
|
|
|
|
|
## Installation Nextcloud
|
|
|
|
|
|
# cd /srv
|
|
|
# wget https://download.nextcloud.com/server/releases/nextcloud-17.0.3.tar.bz2
|
|
|
# tar xvf nextcloud-17.0.3.tar.bz2
|
|
|
# chown -R www-data:www-data /srv/nextcloud
|
|
|
Télécharger et décompresser les fichiers
|
|
|
|
|
|
# cd /srv
|
|
|
# wget https://download.nextcloud.com/server/releases/nextcloud-17.0.3.tar.bz2
|
|
|
# tar xvf nextcloud-17.0.3.tar.bz2
|
|
|
# chown -R www-data:www-data /srv/nextcloud
|
|
|
|
|
|
* Compléter l'installation avec la commande OCC
|
|
|
|
|
|
Compléter l'installation avec la commande OCC
|
|
|
|
|
|
# cd /srv/nextcloud
|
|
|
# sudo -u www-data php occ maintenance:install --database "pgsql" --database-host "localhost:/run/postgresql" --database-name "nextcloud" --database-user "nextcloud" --database-pass "password" --admin-user "rescue" --admin-pass "password"
|
|
|
Nextcloud was successfully installed
|
|
|
|
|
|
Corriger la configuration générée
|
|
|
|
|
|
# nano /srv/nextcloud/config/config.php
|
|
|
|
|
|
Remplacer `localhost` par `inubo.votredomain.ch`
|
|
|
|
|
|
Puis se connecter à nextcloud via son navigateur |