Last change on 2022-06-22 • Created on 2021-06-23
nextcloud logo

This app contains a ready to use Nextcloud installation. You can install it via the Hetzner Cloud Console or the Hetzner Cloud API.

Nextcloud combines the convenience and ease of use of consumer-grade solutions like Dropbox and Google Drive with the security, privacy and control business needs. It is a self-hosted productivity platform that allows you to store files on your own server (file hosting) and more.

Getting started

Create your server on our Hetzner Cloud Console. Instead of an image, you will be able to choose the app that you would like to have preinstalled on your server.

Nextcloud is preinstalled when the image is booted, but it is not enabled.

In order to enable Nextcloud and create your admin user, first, please log into your server:

  • Via SSH key, if you selected one when you created the server
  • Via root password, which will be mailed to you if you created a server without selecting an SSH key

This will guide you through the process and give you additional Let's Encrypt support. If you choose to skip Let's Encrypt, you will still be able to activate it another time (see Activate Let's Encrypt post installation).

When you are done, you will be able to use Nextcloud as usual from the web.

Hetzner Cloud API

In addition to the Hetzner Cloud Console you can also use the Hetzner Cloud API to set up a server with pre-installed Nextcloud.

  • For example with a curl command via CLI

    curl \
     -X POST \
     -H "Authorization: Bearer $API_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"name":"my-server", "server_type":"cx31", "image":"nextcloud"}' \
  • Or via hcloud-cli

    hcloud server create --name my-server --type cx31 --image nextcloud

Activate Let's Encrypt post installation

Let’s Encrypt provides digital certificates that are needed to enable HTTPS (SSL/TLS) for websites.

To activate Let's Encrypt after the initial script has run, please follow the steps below.

  1. Run Certbot (preinstalled) with the Apache plugin `

    certbot --apache

    It will guide you through the process of obtaining a valid SSL certificate.

  2. Restart Apache

    systemctl restart apache2

Image content

Base OS

  • Ubuntu 20.04

Installed packages

This image contains Apache, MySQL and PHP as packages and Nextcloud from source.

Nextcloud AGPLv3
Apache GPLv3 (Apache 2.0)
PHP GPL (Expat)
Certbot GPL (Apache 2.0)


We use auto-generated passwords which are stored in:


For more information about the installed packages, please refer to their official documentation:

For more information about Hetzner Cloud and Hetzner Cloud Apps, please refer to our official documentation:

Table of Contents