Skip to main content

Nextcloud AIO

Installation

The whole Document is tested with a fresh Debian 12 Installation only!

Basis

Current State is from: 2025-01-16

apt update -y
apt upgrade -y

Webserver

apt install nginx python3-certbot-nginx -y

PHP

As per survy README

apt-get update
apt-get install lsb-release ca-certificates curl -y
curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
dpkg -i /tmp/debsuryorg-archive-keyring.deb
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update

Required and DB Connector as well as Recommeded as per Nextcloud Documentation.

apt install php8.3-{ctype,curl,dom,gd,mbstring,posix,simplexml,xmlreader,xmlwriter,zip,pgsql,intl,fpm} -y
Konfiguration
_php_config_files=(
  "/etc/php/8.3/fpm/php.ini"
  "/etc/php/8.3/cli/php.ini"
)

for file in ${_php_config_files[@]}; do
sed -i 's/^max_execution_time =.*/max_execution_time = 3600/' $file
sed -i 's/^memory_limit =.*/memory_limit = 512M/' $file
sed -i 's/^.*opcache.enable.*=.*/opcache.enable=1/' $file

PSQL