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.
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).
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