Nextcloud
Host
Debian bookworm VM
DUAL CORE 8GB RAM 80 GB HDD
NB CollaboraOnline recommends 4 cores if you need that.
AppImage
Nextcloud apps can be binary blobs which depend on fuse and may also require X11 features such as fonts. The X11 client depends on Qt
apt install fuse qt6-base-dev libasound2
Server
MySQL
apt install mariadb-server rehash mysql_secure_installation
mysql CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; CREATE USER 'nextcloud'@'X.X.X.X' IDENTIFIED BY 'nextcloud'; GRANT ALL ON nextcloud.* TO 'nextcloud'@'X.X.X.X' WITH GRANT OPTION; FLUSH PRIVILEGES;
Apache/PHP
apt install apache2 libapache2-mod-php php-mysql php-common php-gd php-xml php-mbstring php-zip php-curl php-pear php-json php-imagick php-dev php-soap php-bz2 php-bcmath php-gmp php-apcu libmagickcore-dev php-redis php-memcached
mkdir -p /var/www/htdocs
Download the latest release. This ZIP file is approx 254 MB in size but the download seems to be throttled and this will take a while.
cd /var/www/htdocs wget "https://download.nextcloud.com/server/releases/latest.zip" unzip latest.zip mv nextcloud nextcloud.example.com chown -R www-data:www-data nextcloud.example.com
#https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html <VirtualHost x.x.x.x:80> ServerName nextcloud.example.com DocumentRoot "/var/www/htdocs/nextcloud.example.com" <Directory "/var/www/htdocs/nextcloud.example.com"> Require all granted AllowOverride All Options FollowSymLinks MultiViews <IfModule mod_dav.c> Dav off </IfModule> </Directory> CustomLog /var/log/apache2/nextcloud.example.com/access.log combined ErrorLog /var/log/apache2/nextcloud.example.com/error.log </VirtualHost>
diff php.ini.dist php.ini 435c435 < memory_limit = 128M --- > memory_limit = 1G 703c703 < post_max_size = 8M --- > post_max_size = 2G 855c855 < upload_max_filesize = 2M --- > upload_max_filesize = 2G
diff conf.d/10-opcache.ini.dist conf.d/10-opcache.ini 4c4,14 < opcache.jit=off --- > ;opcache.jit=off > ; > opcache.enable=1 > opcache.enable_cli=1 > opcache.revalidate_freq = 60 > opcache.memory_consumption = 256M > opcache.interned_strings_buffer = 128M > opcache.max_accelerated_files=10000 > opcache.save_comments = 1 > opcache.jit = 1255 > opcache.jit_buffer_size = 8M
Client
Download the app image.
wget https://github.com/nextcloud-releases/desktop/releases/download/v3.16.2/Nextcloud-3.16.2-x86_64.AppImage chmod +x Nextcloud-3.16.2-x86_64.AppImage
Run client
setenv DISPLAY somewhere:0.0 ./Nextcloud-3.16.2-x86_64.AppImage