Find out how to Set Up Nextcloud on a VPS

0
407
Find out how to Set Up Nextcloud on a VPS


Oh, Google Drive.

Keeper of misplaced paperwork and forgotten drafts.

Charger of $14 per individual per thirty days.

What recent new horrors await inside thine hallowed (and hole) folders?

Wait… what’s that?

A spreadsheet known as “Untitled spreadsheet (7)” that accommodates, in opposition to all odds, the corporate’s precise This autumn price range?

Hmm. Okay, perhaps it’s time to wash issues up. 

Subsequent time you end up eyeing that Google Drive invoice you’ve been ignoring, right here’s a greater concept.

Cue: Self-hosted Nextcloud.

Nextcloud is free software program that runs the identical form of file-sync-and-share format on a server you personal, with no curator, no ad-relevance scanning, and no per-seat cost.

Right here’s the way to get it working, what it really prices, and whether or not the tradeoff is value it on your group.

Why Run Nextcloud As an alternative of Utilizing Google Drive?

Find out how to Set Up Nextcloud on a VPS

The quick reply: your recordsdata, your server, your guidelines. 

Google Drive shops your knowledge by itself infrastructure and scans it in opposition to coverage compliance. If served with a authorized warrant, Google palms your recordsdata over, usually with out notifying you first. 

However self-hosted Nextcloud shops your recordsdata on a server you management, in no matter jurisdiction you select, with the encryption keys in your palms.

For lots of small groups, that’s motive sufficient. For these dealing with regulated knowledge — medical information, authorized recordsdata, something touching GDPR or HIPAA — it’s much less of a desire and extra of a requirement.

The opposite motive is value, which we’ll get into extra within the subsequent part. However the quick model is that Google Workspace fees per person per thirty days. Nextcloud doesn’t. 

The place Google nonetheless wins: real-time co-authoring in Google Docs is extra polished than Nextcloud’s Workplace integrations, and Google Meet beats Nextcloud Discuss on video name high quality at scale. If these are your group’s core workloads, that’s value factoring in.

However in case you principally want file sync, shared calendars, contacts, and chat, Nextcloud covers all of it, on infrastructure you personal.

Get Content material Delivered Straight to Your Inbox

Subscribe now to obtain all the newest updates, delivered on to your inbox.

Can You Run Nextcloud on a VPS?

Sure, and it’s the commonest means individuals do it. 

A digital personal server (VPS) lands within the helpful center floor in deployment choices. 

It’s extra dependable than a NAS machine in your basement (which will depend on residential energy and your willingness to debug a caught disk at 11 p.m.). It’s cheaper than enterprise-managed Nextcloud, which begins at 4 figures a yr. And it’s extra personal than Google Workspace, because you management the keys and also you decide the authorized jurisdiction.

That stated, a VPS isn’t all the time the precise match. Above roughly 50 energetic customers, a devoted server makes extra sense. When you solely want entry on the house community and by no means sync to telephones exterior it, NAS is the less complicated reply.

Deployment Finest For Commerce-Off
VPS 1–50 customers, distant sync, predictable value You handle the OS and updates
NAS at residence LAN-only entry, family picture libraries Residential uptime, no static IP
Devoted server 50+ energetic customers, heavy Discuss/Workplace use Multi-hundred-dollar month-to-month value
Managed Nextcloud Groups that need zero ops Per-user pricing eats the financial savings

For many readers evaluating self-hosting choices, a VPS plus the official All-in-One Docker picture is the precise reply. And that’s what we cowl in the remainder of this information.

What Does It Value to Self-Host Nextcloud In comparison with Google Workspace?

Nextcloud’s software program is free. You pay just for the server it runs on, and that adjustments the maths fairly shortly after getting greater than a handful of customers. 

Google Workspace fees per person per thirty days. Most groups land on the Enterprise Commonplace plan at $14 per person per thirty days on an annual dedication, which incorporates 2 TB of pooled storage per license and many of the collaboration options. Self-hosted Nextcloud runs on a flat payment from a VPS supplier no matter what number of customers you add.

Right here’s how that sometimes performs out:

Staff Measurement Workspace Commonplace ($14/person/mo) Self-Hosted Nextcloud (flat VPS payment)
1–2 customers $168–336/yr ~$84–144/yr (Stack 4 baseline)
5 customers $840/yr ~$360/yr (Stack 8)
10 customers $1,680/yr ~$360/yr
20 customers $3,360/yr ~$700/yr (Stack 16 territory)
50 customers $8,400/yr ~$700/yr

5 Workspace seats at $14 a month run $840 a yr. A Stack 8 VPS runs roughly $360. The distinction at 20 customers is over $2,500 — sufficient for a round-trip flight to someplace with a seashore, or about six months of respectable espresso. 

Two vital caveats earlier than you get too excited:

  1. Nextcloud isn’t really free in case you rely your time. Price range two to 4 hours a month for updates and monitoring. At any affordable hourly charge, that erases the associated fee benefit at one or two customers.
  2. The comparability solely works if Nextcloud meets your group’s wants. For many file sync, calendar, contacts, and chat workloads, it does. Nevertheless it’s not an ideal Google Workspace substitute, so don’t faux the apps are similar.

What Server Specs Does Nextcloud Want?

The trustworthy minimal for an actual group is 8 GB of RAM. You may get Nextcloud working on 2 GB, however that’s a testing atmosphere, not a manufacturing one. 

The official numbers from Nextcloud’s system necessities are conservative: 128 MB minimal and 512 MB really helpful per course of. The Nextcloud All-in-One README provides three tiers for the Docker stack:

  • Naked minimal: 2 GB RAM, dual-core CPU, 40 GB storage to deliver AIO up with optionally available containers enabled.
  • Really helpful: 4 GB RAM for the bottom stack with out optionally available providers. Add Nextcloud Workplace (Collabora) or Discuss, and also you’ll need 6–8 GB — Collabora alone idles at 1–2 GB earlier than anybody opens a doc. 
  • Every thing enabled: 5 GB RAM and a quad-core CPU is the AIO flooring when Workplace, Discuss, ClamAV, Whiteboard, and the remainder are all turned on — however in observe, count on to want 8 GB or extra as soon as actual customers are on the field. The Nextcloud group suggests at the very least 1 GB of headroom over whichever minimal applies.

These are flooring, not targets. Right here’s the way it lands as soon as you set actual customers on the field.

Use Case Sensible RAM DreamHost Plan
1–2 customers, recordsdata solely 4 GB Stack 4
3–10 customers, recordsdata + Workplace 8 GB Stack 8 (really helpful)
10–50 customers, Discuss video at scale 16 GB+ Stack 16

Storage issues simply as a lot as RAM after getting multiple person. Plan for five–20 GB per energetic person — extra if persons are storing images or Discuss recordings, much less if it’s doc solely. No matter you estimate, double it for the primary six months. Nextcloud’s versioning and deleted-file retention quietly eat extra disk than you’d count on.

Disk pace additionally elements in. Nextcloud is, at its coronary heart, a file-sync app. Each sync consumer opens a whole bunch of small connections to learn and write metadata, and NVMe runs roughly 5 to 10 occasions sooner than a spinning disk on these operations. That’s the distinction between Nextcloud feeling snappy and Nextcloud feeling like a barely haunted mid-2000s file share.

DreamHost, a webhosting supplier, ships NVMe storage as customary throughout each Self-Managed VPS tier, which is why Stack 8 is our really helpful baseline.

How Do You Set up Nextcloud on a VPS?

There are 3 ways to put in Nextcloud on a VPS: the official All-in-One Docker picture, guide Docker Compose, or a bare-metal LAMP stack. For most individuals, the reply is the primary one. The overwhelming majority of self-hosters ought to begin with the All-in-One Docker picture and by no means look again.

Every path assumes a recent Ubuntu 24.04 LTS VPS with root entry and a website pointed at it. 

The Quickest Path: Nextcloud All-in-One Docker

Nextcloud All-in-One is the official set up path, maintained by the Nextcloud group. It runs each service — server, database, Redis, Workplace, Discuss, backup, and reverse proxy — as managed containers, coordinated by a single grasp container that handles upgrades, backups, and SSL robotically. 

The entire set up is one command:

sudo docker run -d 
--init 
--name nextcloud-aio-mastercontainer 
--restart all the time 
--publish 80:80 
--publish 8080:8080 
--publish 8443:8443 
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config 
--volume /var/run/docker.sock:/var/run/docker.sock:ro 
ghcr.io/nextcloud-releases/all-in-one:newest

After that, an online setup wizard walks you thru the remainder at port 8080. Setup takes about an hour for somebody comfy on a Linux command line. 

For full directions, try the Nextcloud AIO README.

The Versatile Path: Docker Compose

Docker Compose is the precise name in case you already run different containerized providers on the host and need Nextcloud to suit alongside them. You write a docker-compose.yml itemizing each service (Nextcloud, MariaDB, Redis, and optionally Collabora or OnlyOffice), after which deliver the stack up with:

docker compose up -d

The trade-off is that you just preserve model pins, networking, and the reverse proxy your self. When you’re undecided why you’d need Compose over All-in-One, you don’t. Pattern Compose recordsdata reside within the Docker group repository.

The Conventional Path: Apache + MariaDB + PHP

Naked-metal LAMP is the unique set up path. Apache or nginx, MariaDB, PHP, and the Nextcloud tarball, no containers. It’s heavier on upkeep as a result of each element upgrades by itself schedule. Decide this selection provided that you particularly must keep away from Docker.

Begin with:

sudo apt set up apache2 mariadb-server libapache2-mod-php php-
{cli,gd,mysql,curl,xml,zip,intl,mbstring,bz2,imagick,bcmath,gmp}

From there, create the database, drop the Nextcloud tarball into /var/www/, and run the online installer. The complete process lives within the Nextcloud set up guide. (All-in-One exists for a motive.)

How Do You Maintain a Self-Hosted Nextcloud Operating?

Three Nextcloud maintenance essentials: offsite backups, regular updates, and auto-renewing SSL.

Three jobs you possibly can’t skip are backups, model updates, and SSL certificates renewal. 

Every thing else is generally maintaining a tally of disk utilization and infrequently killing a caught cron job.

Backups must seize each the info listing and the database. Restoring one with out the opposite provides you a listing stuffed with recordsdata that Nextcloud can’t index. 

All-in-One has a built-in backup container that handles this for you. For a guide set up, you run rsync for recordsdata and mysqldump or pg_dump for the database in a cron job, then ship the output off the VPS. DreamObjects is one S3-compatible goal in case you’d moderately hold the backup with the identical supplier.

Updates are the place most Nextcloud installations break. Main model upgrades — like Hub 25 Autumn to Hub 26 Winter — can depart third-party apps incompatible for days whereas maintainers ship new variations. 

All-in-One handles this extra gracefully than guide installs as a result of it pins appropriate variations throughout containers and waits for the ecosystem to catch up. The Nextcloud boards are stuffed with bare-metal installs damaged by a model mismatch.

SSL renewal is generally automated on All-in-One or any reverse proxy with Let’s Encrypt. Caddy, Traefik, and Nginx Proxy Supervisor all renew on their very own. Naked-metal LAMP wants certbot arrange appropriately the primary time, after which it normally behaves.

One different factor to recollect is that disk area is the boring villain of self-hosting. Nextcloud’s defaults retain deleted recordsdata for 30 days and hold model historical past on each edit. Discuss recordings, uploaded images, and shared file caches all eat area. 

It’s not unusual for an admin panel to sit down at 99% disk for 2 weeks earlier than anybody notices sync has quietly stopped working. Set retention insurance policies within the admin panel and configure alerts earlier than you hit 90%, not after. 

Is It Time to Take the Leap?

On the finish of the day, Google Drive is a reasonably costly method to lug round each file you’ve ever touched during the last 20 years.

And once you issue within the prices of management and privateness, the case for self-hosting will get more durable to disregard.

Nextcloud takes about an hour to put in and some hours a yr to keep up, with zero per-seat charges. The trade-off is that you just develop into the curator. You determine what stays, what will get deleted, what will get backed up, and which jurisdiction the info lives in.

For lots of groups, that’s not a burden. That’s the entire level. 


Self-Managed VPS

Personal Your Complete Stack. Apps, AI, Databases, and Extra.

Maintain each credential and dialog on a server you management, with NVMe pace and unmetered bandwidth in-built.


Discover Self-Managed VPS Plans

Incessantly Requested Questions About Nextcloud on a VPS

Are you able to run Nextcloud on a $5/month VPS?

You may run Nextcloud on a $5 VPS, however the expertise is tough above one or two customers. A $5 plan sometimes provides you 1 GB of RAM and a single CPU core, which hits swap shortly underneath any sync load. The Nextcloud All-in-One picture wants 2 GB of RAM as a flooring, so the most cost effective tier locks you out of the really helpful set up path completely. For a family with two units, 4 GB is the trustworthy minimal, and a DreamHost Stack 4 plan covers that comfortably.

How a lot storage does Nextcloud want per person?

Plan for five to twenty GB of storage per energetic Nextcloud person. Doc-only use stays on the low finish. Pictures and Discuss recordings push the excessive find yourself quick. A family with two telephones syncing picture libraries can fill 100 GB in a yr. 

Double your preliminary guess for the primary six months, since Nextcloud’s default versioning and 30-day deleted-file retention quietly eat disk you didn’t price range for.

Is Nextcloud free?

Sure, Nextcloud Server is free and open-source underneath the AGPLv3 license. Nextcloud GmbH, the corporate behind the venture, sells Enterprise assist contracts to massive organizations, however all the things a person or small group wants is free: the server software program, the All-in-One picture, the desktop and cellular purchasers, and each official app. No per-user payment, no function paywall, no time-limited trial.

Do you want Docker to run Nextcloud?

No, you don’t want Docker to run Nextcloud, however for many self-hosters, Docker (particularly the All-in-One picture) is the best set up path. Naked-metal LAMP works and is formally supported. Docker is simply much less fragile to keep up as a result of the All-in-One grasp container pins appropriate variations throughout the database, PHP runtime, Redis, and the Nextcloud server itself.

Is a VPS or a NAS higher for Nextcloud?

A VPS is best once you want dependable distant entry, and a NAS is best when recordsdata solely must reside on the house community. NAS uptime will depend on residential energy, residential web, and your willingness to debug a caught disk at any hour. A VPS provides you a static IP, an actual SLA, and a server in an information heart with redundant energy. The trade-off is a month-to-month payment as an alternative of a one-time {hardware} buy. 

DreamHost’s Self-Managed VPS Stack 8 is a typical selection for households or small groups which have outgrown a NAS.

How do you again up a self-hosted Nextcloud?

Again up the info listing and the database collectively. Each are required to revive a working Nextcloud. The information listing holds the recordsdata, whereas the database holds the person accounts, share hyperlinks, model historical past, and metadata. 

The usual strategy is rsync for recordsdata and mysqldump or pg_dump for the database, written right into a nightly cron job that ships each off the VPS to S3-compatible storage like DreamObjects or Backblaze B2. Nextcloud All-in-One has a built-in backup container that handles this on a recent set up.

{
“@context”: “https://schema.org”,
“@graph”: [
{
“@type”: “FAQPage”,
“mainEntity”: [
{
“@type”: “Question”,
“name”: “Can you run Nextcloud on a $5/month VPS?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “You can run Nextcloud on a $5 VPS, but the experience is rough above one or two users. A $5 plan typically gives you 1 GB of RAM and a single CPU core, which hits swap quickly under any sync load. The Nextcloud All-in-One image needs 2 GB of RAM as a floor, so the cheapest tier locks you out of the recommended install path entirely.”
}
},
{
“@type”: “Question”,
“name”: “How much storage does Nextcloud need per user?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Plan for 5 to 20 GB of storage per active Nextcloud user, depending on file types. Document-only use stays at the low end. Photos and Talk recordings push the high end up fast; a household with two phones syncing photo libraries can fill 100 GB inside a year.”
}
},
{
“@type”: “Question”,
“name”: “Is Nextcloud free?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Yes, Nextcloud Server is free and open-source under the AGPLv3 license. Nextcloud GmbH, the company behind the project, sells Enterprise support contracts to large organizations, but everything an individual or small team needs is free.”
}
},
{
“@type”: “Question”,
“name”: “Do you need Docker to run Nextcloud?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “No, you don’t need Docker to run Nextcloud, but for most self-hosters Docker (specifically the All-in-One image) is the easiest install path. Bare-metal LAMP works and is officially supported.”
}
},
{
“@type”: “Question”,
“name”: “Is a VPS or a NAS better for Nextcloud?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “A VPS is better when you need reliable remote access; a NAS is better when files only need to live on the home network. NAS uptime depends on residential power, residential internet, and your willingness to debug a stuck disk at 11 p.m. A VPS gives you a static IP, a real SLA, and a server in a data center with redundant power.”
}
},
{
“@type”: “Question”,
“name”: “How do you back up a self-hosted Nextcloud?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Back up the data directory and the database together. Both are required to restore a working Nextcloud; the data directory holds the files, while the database holds the user accounts, share links, version history, and metadata.”
}
}
]
},
{
“@kind”: “HowTo”,
“identify”: “Find out how to Set Up Nextcloud on a VPS”,
“step”: [
{
“@type”: “HowToStep”,
“name”: “The Fastest Path: Nextcloud All-in-One Docker”,
“text”: “Nextcloud All-in-One is the official install path, maintained by the Nextcloud team. It runs every service (server, database, Redis, Office, Talk, backup, reverse proxy) as managed containers, coordinated by a single mastercontainer that handles upgrades, backups, and SSL. The whole install is one Docker command plus a web setup wizard at port 8080.”
},
{
“@type”: “HowToStep”,
“name”: “The Flexible Path: Docker Compose”,
“text”: “Docker Compose is the right call if you already run other containerized services on the host and want Nextcloud to fit alongside them. You write a docker-compose.yml listing every service (Nextcloud, MariaDB, Redis, optionally Collabora or OnlyOffice), then bring the stack up with docker compose up -d.”
},
{
“@type”: “HowToStep”,
“name”: “The Traditional Path: Apache + MariaDB + PHP”,
“text”: “Bare-metal LAMP is the original install path. Apache or nginx, MariaDB, PHP 8.4, and the Nextcloud tarball, no containers. It’s heavier on maintenance because every component upgrades on its own schedule. Pick LAMP only if you specifically need to avoid Docker.”
}
]
}
]
}

The submit Find out how to Set Up Nextcloud on a VPS appeared first on DreamHost Weblog.