Zum Inhalt springen

Nextcloud

Install Nextcloud, use it as a WebDAV drive, manage emails, contacts, appointments and files.

Introduction

Nextcloud is a fork of Owncloud.

Installation of Nextcloud

To set up Nextcloud in your package, you must first log in to your customer menu (Plesk).

Create a subdomain via which Nextcloud should be accessible. This could be nc.DOMAIN.TLD or nextcloud.DOMAIN.TLD, for example. Enter an empty directory (document root) for the subdomain. If you do not specify a directory, Plesk will automatically use "httpdocs/SUBDOMAIN".

Make sure that the subdomain is either assigned the wildcard SSL certificate of the DOMAIN.TLD or order a free Let's Encrypt SSL certificate for the subdomain.

You can also set the PHP version to 8.2 in the hosting settings.

Since Nextcloud stores data in a database, create a MariaDB database.

Go to the Nextcloud installation page and download either the "Web installer" or an archive. You can find these under "Community projects".

You can also download the web installer directly from the shell in the installation directory (see document root) using wget:

wget https://download.nextcloud.com/server/installer/setup-nextcloud.php

Call the setup-nextcloud.php via your Nextcloud domain (nc.DOMAIN.TLD/setup-nextcloud.php).

Setup of Nextcloud

Go to the next installation step.

Enter a . so that Nextcloud is installed in the directory you have specified (document root). If you enter a directory name, a subdirectory will be created.

The successful installation is confirmed.

Enter a name for the administrator user. This should not be "Admin" or "Administrator".

Click on "Memory & database" so that you can then enter the database parameters.

Enter the database parameters as shown in the example, with the data from your database.

The recommended apps can be installed individually at a later date.

Configure background jobs

Nextcloud recommends setting up a cronjob for the background jobs, which should be executed every 5 minutes. This is shown as an example under Execute PHP file via a cronjob.

Executing the OCC (OwnCloud Console) on the shell

You have probably already noticed that under "Administration settings" ' "Administration" ' "Overview" there are sometimes maintenance tasks that need to be performed on the shell. This is done via the OCC provided by Nextcloud.

  • To do this, log in to your shell.
  • Then execute the commands.

Under Available PHP CLI versions, find the command that matches the PHP version of your Nextcloud. For example, if your Nextcloud is running PHP version 8.3, use /opt/alt/php83/usr/bin/php.

The following command could be used to create missing indexes in your database:

/opt/alt/php83/usr/bin/php occ db:add-missing-indices

Setting up a WebDAV

Call up the files in Nextcloud.

Call up the file settings there.

You will find the URL for WebDAV in the settings.

You can then log in with your user and their password.

The URL is therefore composed as follows:

nc.DOMAIN.TLD/remote.php/dav/files/BENUTZERNAME

Updated: 17.07.2024