This is an old revision of the document!
Nextcloud
Server
Debian bookworm VM
DUAL CORE 2GB RAM 80 GB HDD
Setup
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
Client
Download “AppImage”
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
Install Qt
apt install fuse qt6-base-dev libasound2
Run client
setenv DISPLAY somewhere:0.0 ./Nextcloud-3.16.2-x86_64.AppImage