====== Owncloud installation and configuration ====== Who doesn't use services like DropBox, Google Drive, OneDrive or similar? I have decided to bury the previous Owncloud solution and through [[https://nextcloud.com/|Nextcloud]]. The server software can be downloaded [[https://nextcloud.com/install/#instructions-server|here]]. Simply select the "Archive file" tab at the top and press the NOT Download button. You have to download the "tar.bz2" archive under "Details and Download Options" and place it in the /tmp/ directory on your Raspberry Pi.\\ The [[https://docs.nextcloud.com/server/latest/admin_manual/installation/|installation instruction]] is quite detailed and only a few rework is required after the installation.\\ I installed the whole thing with PHP 8.0 and MariaDB as the database, which gave me the problems described in [[.:news:news022022|News February 2022]].\\ Here are the installation steps on the Raspberry Pi that I remembered:\\ ===== Preliminary Remarks ===== * All steps are run as root user, writing "sudo" before each command is not helpful. * The [[https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation|installation instructions]] must be read and consulted in case of problems ===== PHP 8.0 installation ===== apt install libapache2-mod-php8.0 php8.0 php8.0-apcu php8.0-bcmath php8.0-bz2 php8.0-cli php8.0-common php8.0-curl php8.0-fpm php8.0 -gd php8.0-gmp php8.0-igbinary php8.0-imagick php8.0-intl php8.0-mbstring php8.0-memcached php8.0-msgpack php8.0-mysql php8.0-opcache php8.0 -readline php8.0-redis php8.0-smbclient php8.0-xml php8.0-zip php8.1-cli php8.1-common php8.1-opcache php8.1-readline ====== MariaDB Installation ====== apt install mariadb-server mariadb-client The prerequisites are now installed and the actual installation of Nextcloud can begin: ====== Installation of Nextcloud ====== cd /var/www mkdir nextcloud chown www-data:www-data nextcloud # Here ====== Apache2 Web Server Configuration ====== Nextcloud will be in a subdirectory of your Apache2 installation (for Raspberry Pi OS and Debian this is /var/www/). So Nextcloud is located in /var/www/nextcloud. To use this correctly, you need to do the following in the Apache2 configuration directory: cd /etc/apache2/ vi sites-available/nextcloud.conf Here I added the following content: Alias ​​/nextcloud "/var/www/nextcloud/" Require all granted AllowOverrideAll Options FollowSymLinks MultiViews dav off All installed applications are listed under sites-available, but only the applications in sites-enabled can be used. Therefore, this file must also be found in sites-enabled cd sites-enabled ln -s ../sites-available/nextcloud.conf CD This creates access to Nextcloud, which of course will only work after the installation. Nextcloud still needs some Apache2 modules that need to be switched on first. a2enmod rewrite a2enmod headers a2enmod approx a2enmod dir a2enmod mime a2enmod setenvif ====== Installation of Nextcloud itself ====== cd /var/www # nextcloud-23.0.2.tar.bz2 was the current version at the time of this documentation. The file name must therefore be adjusted !! tar -xzf /tmp/nextcloud-23.0.2.tar.bz2 chown -R www-data:www-data nextcloud # Yes, "sudo" is mandatory here, even as a root user sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess ===== Rework ===== Now that everything is prepared, the Apache2 server must be restarted: systemctl restart apache2 At http://eure.dyndns.adresse/nextcloud you can now follow the instructions of the assistant to do the follow-up work. Have fun