Install NextCloud on Ubuntu 22.04 (Nginx + PostgreSQL + PHP8)

2 min readMay 2, 2022


This tutorial will be showing you how to install NextCloud on Ubuntu 22.04 LTS with Nginx web server.

What’s NextCloud?

NextCloud is a free open-source self-hosted cloud storage solution. It’s functionally similar to Dropbox. Proprietary cloud storage solutions (Dropbox, Google Drive, etc) are convenient, but at a price: they can be used to collect personal data because your files are stored on their computers. If you are worried about privacy, you can switch to NextCloud, which you can install on your private home server or on a virtual private server (VPS). You can upload your files to your server via NextCloud and then sync those files to your desktop computer, laptop or smartphone. This way you have full control of your data.

NextCloud Features

  • Free and open-source
  • End-to-end encryption, meaning files can be encrypted on client devices before being uploaded to the server, so even if someone steals your server, they can not read your files.
  • Can be integrated with an online office suite (Collobora Online, OnlyOffice) so you can create and edit your doc, ppt, xls files directly from NextCloud.
  • The app store contains hundreds of apps to extend functionality (like calendar app, contacts app, note-taking app, video conferencing app, etc).
  • The sync client is available on Linux, macOS, Windows, iOS, and android.

Read full tutorial here: