One command installs the whole stack - web server, database, PHP and Nextcloud itself. This guide takes that easy start and finishes it properly, so your private cloud is safe and usable from day one.
Most Nextcloud guides begin with a long shopping list: install Apache, install MariaDB, tune PHP, create a database, set permissions - and one wrong step anywhere breaks the whole thing. The video above uses the other road: the official Nextcloud snap package, where a single command installs everything together. The honest line, before we start: one step installs it, but a handful of short steps make it truly yours - an admin account created safely, your address registered, and HTTPS switched on. This page covers the install and those finishing steps, in order.
A snap is a complete app bundle. The Nextcloud snap packs Nextcloud itself plus the Apache web server, a MySQL database and the PHP runtime it needs, all pre-configured to work together. It is maintained by the Nextcloud snap team, and Nextcloud's own admin manual describes the idea as install and forget - the package also updates itself to new stable releases automatically.
The trade is choice. The snap is deliberately opinionated: Apache and MySQL are fixed, file locations are fixed, and deep custom tuning is limited compared to a hand-built server. For a home or small-office cloud, that trade is almost always worth it - you give up knobs you would never touch and gain an install that works in minutes.
On a fresh Ubuntu server or desktop, update the package list first, then install:
sudo apt updatesudo snap install nextcloudsnap changes nextcloud, then open the server address in a browser: http://YOUR-SERVER-IPIf the Nextcloud page loads, the stack is alive. Do not create the admin account in a hurry from the browser yet - the next step shows the safer order.
On first visit, the web page offers to create the admin account. That works, but until somebody does it, anyone who can reach the page first could claim it. On your own home network the risk is small; on any shared network, create the account from the terminal instead:
sudo nextcloud.manual-install admin YourStrongPassword - replace both words with your own admin name and a long passwordEither way, this admin account is the master key of your cloud. Use a password you do not reuse anywhere else, and keep it in a password manager.
Nextcloud only answers requests that arrive through addresses it trusts. Open it through a new IP or domain name and it shows an Access through untrusted domain page instead of the login. Fix it once, from the terminal:
sudo nextcloud.occ config:system:get trusted_domainssudo nextcloud.occ config:system:set trusted_domains 1 --value=192.168.1.50 (use your real IP)sudo nextcloud.occ config:system:set trusted_domains 2 --value=cloud.example.comNotice the tool: on the snap, every Nextcloud command-line job runs through sudo nextcloud.occ. You will meet it again in the warnings and backup guides of this series.
A login page over plain HTTP sends passwords across the network readable to anyone in between. If your server has a domain name pointing at it, the snap can fetch and install a free Let's Encrypt certificate by itself:
sudo nextcloud.enable-https lets-encryptNo domain yet? The snap also offers sudo nextcloud.enable-https self-signed, which encrypts the connection but shows a browser warning because the certificate proves nothing about who you are. For use inside your own home that is acceptable for a start; for access from outside, get the real certificate - the outside-access guide in this series covers the full safe setup.
Finish the install day with a real proof, not just a login screen:
That round trip proves storage, database and sync are all healthy. What the one step has not done: your files still sit on the system disk, there is no backup yet, updates will arrive on the snap's schedule, and the admin settings still show warnings. Each of those has its own short guide in this series - do them in the first week, before real files move in.
The full install, live on screen - the command, the first login and the setup screens, exactly as they appear.
Watch Full VideoYes. It is the same Nextcloud server software everyone else installs - the snap simply packages it together with Apache, MySQL and PHP, pre-configures them, and manages updates for you. What you give up is deep customisation, not features your family or small team will miss.
On a normal internet connection the download and install usually finish in a few minutes. Creating the admin account, registering your address and enabling HTTPS adds perhaps ten more minutes - most of it typing, not waiting.
Yes, but treat it as a migration, not a switch: the snap ships export and import commands that back up the whole instance - data, database and settings - so you can restore it onto a differently-built server. Most home and small-office users never need to; the snap keeps maintaining itself.