This Nextcloud installation guide describes the installation, configuration and hardening, monitoring as well as some extension options of Nextcloud on a 24.x LTS (x86-64) or Debian Server 12 (x86-64) server.
The installation is based on the components web server nginx, Let’s Encrypt TLS 1.3, MariaDB 10.11, PHP 8.3 (php-fpm), Redis, crowdsec, ufw, and Netdata, and finally receives an A+ security rating from both Nextcloud and Qualys SSL Labs.
The parameters to be adjusted are marked in red in the article and must be replaced with your specific system values (e.g. your.domain.de or 192.168.2.x).
Would you rather install everything with just a single script? Then use our Nextcloud installation script zero.sh, which is available here.
Further manufacturer information can be found here.
Current installation media for the underlying Linux server can be obtained here:
Ubuntu 24.04.x LTS:Requirements: Download Installation Medium
Debian 12.x: Voraussetzungen: Download Installation Medium
Start the installation and connect to your server via SSH console, e.g.
ssh <user>@<IP-address>
Only Debian Server:
su - apt install -y sudo usermod -aG sudo <Your current user> exit
From here on, it continues again for both server operating systems (Ubuntu and Debian):
Switch to privileged user mode
sudo -s