Skip to content

Nextcloud

Install Nextcloud with PHP 8.4, PostgreSQL, APCu and Valkey caching, sendmail, and scheduled background jobs. Client Push is included; Talk is optional.

Install over SSH
uberspace app install nextcloud
Manual installation
Nextcloud Guide
Playbook
nextcloud.yaml (version 0.6)
Last changed
2026-12-04

Before you start

Use a fresh Asteroid with an empty document root. This playbook configures the Asteroid's PHP-FPM service for Nextcloud; use a separate Asteroid for other applications. It refuses to reuse existing application files, data, databases, or a Valkey service. This is a fresh-install playbook, not an upgrade or repair tool.

The default domain is your Asteroid domain, such as isabell.uber.space. If you choose a custom domain, configure its DNS first. Client Push uses ports 7867 and 7868.

Installation

Over SSH: Run the app installer. It downloads the Nextcloud playbook from the Lab, shows the configuration, and asks for confirmation before installing. Example output is abbreviated:

[isabell@moondust ~]$ uberspace app install nextcloud
[...]
OK: playbook finished

To include Talk, use:

[isabell@moondust ~]$ uberspace app install nextcloud --var install_talk=true
[...]
OK: playbook finished

These are alternative installation commands; run only one on your fresh Asteroid.

Useful options:

Option Default Purpose
--var admin_mailaddress=you@example.com sysmail@isabell.uber.space Receives password-reset emails; set an address you read
--var admin_username=alice Your Asteroid name Nextcloud admin username
--var domain=cloud.example.com Your Asteroid domain Public Nextcloud domain
--var db_name=isabell_cloud isabell_nextcloud New PostgreSQL database; must start with your Asteroid name and _
--var data_path=/home/isabell/cloud_data /home/isabell/nextcloud_data Data directory inside your home
--var install_talk=true false Install chat, audio and video calls
--var maintenance_window_start=1 1 Start of the four-hour maintenance window, in UTC
--var default_phone_region=AT DE Country code for phone numbers entered without one

To preview the configuration and the tasks without changing anything, add --dry.

First login

Open your Nextcloud domain. Your username is your Asteroid name unless you supplied a different admin_username. Use Forgot password? to set a password through the configured admin email address. You can also set it over SSH using Nextcloud’s maintenance command. Example output is abbreviated:

[isabell@moondust ~]$ php /var/www/virtual/$USER/html/occ user:resetpassword isabell
Enter a new password:
Confirm the new password:
Successfully reset password for isabell

Configuration

Email: Nextcloud sends mail through local sendmail in pipe mode, using isabell@uber.space as the sender in this example. No SMTP credentials are required. Check your email address under Personal settings > Personal info, then send a test email from Administration settings > Basic settings > Email server and confirm that it arrives.

Memory: PHP-FPM runs at most two workers, each with a 512 MiB PHP limit. OPcache uses a 128 MiB cache and APCu uses 64 MiB. Additional web requests queue behind the two workers. These settings reduce memory use, but do not impose a combined limit on Nextcloud's services; the Asteroid's account-wide RAM limit still applies.

Background jobs: They run every five minutes through cron. A file lock prevents overlapping runs. Their latest output is saved in ~/logs/nextcloud-cron.log.

Client Push: It is configured at https://isabell.uber.space/push. Its PHP callback service listens only on loopback. Installation waits for the public route and verifies the push connection.

Talk (optional): If you installed Talk, test calls between different networks. Some networks require a separate TURN service. This playbook does not install a TURN server or Talk's high-performance backend; see the Talk section of the Guide.

Setup checks: The playbook enables HSTS for your domain, adds optional database indices, and runs the mimetype migrations.

Updates and backups

Core updates run daily at 03:15 and app updates at 04:15, in the server's timezone. Both use ~/bin/nextcloud-update, share the background-job lock, and restart and verify Client Push after success. Updates wait up to one hour for the lock and stop on errors. Check ~/logs/nextcloud-update-core.log and ~/logs/nextcloud-update-apps.log regularly; each contains the latest run.

Keep backups of the database, application files, configuration, and data. The built-in updater only backs up application code. For database exports, follow the PostgreSQL Manual, including its PostGIS exclusions. See the Guide's update instructions for manual runs and failure handling.

For maintenance responsibilities, see Your app, your freedom, your responsibility.

Troubleshooting

Application logs are in ~/nextcloud_data/nextcloud.log by default. Installation logs are in ~/logs/app_playbooks/. If installation fails, read those logs before making changes; the playbook will refuse to overwrite a partial installation on a second run.

Administration settings > Overview may still show informational hints, an error about Talk's missing high-performance backend if you installed Talk, and a PostgreSQL cache-hit warning that depends on the shared database server. See the Guide's setup checks.