====== Environnement de Développement d'application ====== Tutoriel: [[https://docs.nextcloud.com/server/latest/developer_manual/app_development/tutorial.html]] ===== Cloner depuis de dépôt GitHub ===== 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 ===== Activer l'option de debug ===== Créer ou modifier le fichier **config/config.php** : vi config/config.php true, ... ); ===== Configurer un VirtualHost pour Apache ===== Créer un fichier du VirtualHost : ServerName nextcloud22.localhost ServerAdmin marc@localhost DocumentRoot /home/marc/prg/nextcloud22 Options Indexes FollowSymLinks Multiviews AllowOverride all Require all denied Require all granted Allow from all ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined 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 ===== Terminer l'installation ===== Visiter la page d'installation [[http://nextcloud22.localhost]] afin de terminer l'installation (créer un utilisateur, configurer la base de données, etc.)