Install Nextcloud in a Proxmox container running Debian

Never pipe script that you don't trust to bash

Preparing

Locale

The standard Debian container images on Proxmox don't have the locale properly set. It can be fixed with: proxmoxDebianFixLocale.txt

wget "https://www.230.ro/en/linux/nextcloud/install-nextcloud-debian/proxmoxDebianFixLocale.txt" -O - | bash  

Timezone

You might want to set a different timezone

echo "Europe/Bucharest" > /etc/timezone; dpkg-reconfigure -f noninteractive tzdata

Install dependecies

Nextcould uses Nginx, PHP, MariaDB and Memcached. installDependencies.txt will install all of them for you.

wget "https://www.230.ro/en/linux/nextcloud/install-nextcloud-debian/installDependencies.txt" -O - | bash  

Configure Nginx

We will create a new site and enable it. nextcloudNginxConfigrator.txt will do that for you. Added bonux, It will deploy an OPcache dashboard at /opcache/.

wget "https://www.230.ro/en/linux/nextcloud/install-nextcloud-debian/nextcloudNginxConfigrator.txt" -O - | bash  

Deploy Nextcloud

We will deploy the latest Nextcloud from download.nextcloud.com to /var/www/html. nextcloudDeploy.txt assumes the /var/www/html folder is empty.

wget "https://www.230.ro/en/linux/nextcloud/install-nextcloud-debian/nextcloudDeploy.txt" -O - | bash