Choix de la branche :
stable22 | Version 22 stable |
---|---|
stable23 | Version 23 stable |
stable24 | Version 24 stable |
master | Prochaine version à venir |
Exemple pour la branche stable22 :
mkdir /home/marc/prg/nextcloud22 cd /home/marc/prg/nextcloud22 # ne pas oublier le dossier destination local '.' à la fin de la commande ! git clone https://github.com/nextcloud/server.git --branch stable22 . # mise à jour des 'submodules' du dépôt git submodule update --init
Créer ou modifier le fichier config/config.php :
vi config/config.php
<?php $CONFIG = array ( 'debug' => true, ... );
Créer un fichier du VirtualHost :
<VirtualHost *:80> ServerName nextcloud22.localhost ServerAdmin marc@localhost DocumentRoot /home/marc/prg/nextcloud22 <Directory /home/marc/prg/nextcloud22> Options Indexes FollowSymLinks Multiviews AllowOverride all Require all denied Require all granted Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
L'utilisateur www-data doit avoir accès au dossier de développement. Pour cela je l'ajoute au groupe marc :
sudo usermod -aG marc www-data
Activer le VirtualHost et redémarrer Apache :
sudo a2ensite nextcloud22.localhost.conf sudo systemctl restart apache2.service
Visiter la page d'installation http://nextcloud22.localhost afin de terminer l'installation (créer un utilisateur, configurer la base de données, etc.)