Skip to main content

Get started with Nextcloud

Nextcloud is free, open-source software for storing, syncing and sharing files on your own hosting, much like a private online drive. It also offers calendars, contacts and many optional apps for collaboration. Desktop and mobile apps keep files in sync across your devices. It suits families, small teams and anyone who wants their files on hosting they control. This guide covers installing Nextcloud and the setup steps that keep it running smoothly.

Install Nextcloud​

If your host offers a one-click installer for Nextcloud, use it. Otherwise, install it with the official web installer:

  1. Download Nextcloud from the official Nextcloud website. It offers the full server archive and a small web installer script that downloads the rest for you.
  2. Upload the files to the web folder for your Nextcloud address over SFTP. See Upload files with SFTP.
  3. Create a database and a database user in your hosting control panel.
  4. Open the address in a browser. Create the administrator account, enter the database details, and set the data folder, where Nextcloud stores everyone's files.
  5. Finish the setup and sign in.

Place the data folder outside the web root (the folder your domain serves files from) when your hosting allows it. Nextcloud protects the folder with web server rules, but keeping it out of the public folder is the safer arrangement.

Set up background jobs with cron​

Nextcloud runs maintenance tasks in the background: cleaning up deleted files and old versions, sending notifications, and updating apps' data. It can trigger these tasks during page visits, but that only works while someone is using the web interface. The method the documentation recommends is cron, a server scheduler that runs Nextcloud's cron.php script every five minutes:

*/5 * * * * php -f /home/exampleuser/public_html/nextcloud/cron.php

Change the path to match your account, and run it as the same user that runs the website. See Cron jobs. Then open Administration settings in Nextcloud, go to the basic settings for background jobs and choose Cron. The page shows when the last job ran, so you can confirm it is working.

Check the security and setup warnings​

The Overview page in Nextcloud's administration settings runs a set of checks and lists security and setup warnings. Typical items include a missing background job setup, missing PHP modules, PHP memory settings, missing recommended web server headers or a missing default phone region. Each warning links to the relevant part of the documentation.

Work through the list after installing and again after each update. Some items may depend on server settings you cannot change on shared hosting; ask your host about those.

Plan your storage​

Every file you and your users upload, plus older file versions and deleted files kept in the trash bin, takes up space in your hosting account. Nextcloud's storage counts against your hosting storage, along with your websites, email and backups.

  • Set storage quotas for each user in the user management settings.
  • Adjust how long deleted files and old versions are kept if space runs short; the administration manual explains the settings.
  • Remember that photo and video libraries grow quickly.

Keep Nextcloud updated and backed up​

Nextcloud releases updates often, and running a supported version matters for security. The administration Overview page shows when an update is available, and the built-in updater guides you through it.

  1. Back up the Nextcloud folder, the data folder and the database. See Backups and restores.
  2. Check that your installed Nextcloud apps support the new version.
  3. Run the updater, then check the security and setup warnings again.
Sync is not a backup

Syncing copies changes everywhere, including deletions and damaged files. Keep separate backups of your Nextcloud data, ideally in a different place from your hosting.

At DomainPilot

You can choose Nextcloud when you order DomainPilot web hosting so it is installed when your account is set up.

Where to get help​

  • The official manuals at docs.nextcloud.com cover installation, administration and the user apps.
  • The Nextcloud community help forum is the place for setup questions.

Nextcloud is one of the heavier apps to run. Many users, large libraries or frequent syncing can outgrow shared hosting; see Web hosting, VPS or cloud.

Did this article help you?