Last verified:
For a small Nextcloud server, start with 2 vCPU, 4 GB RAM and enough disk space for at least twice today’s file library. That is our planning baseline for Nextcloud, a database, Redis, PHP workers and background jobs on one VPS. It is not an official minimum.
Nextcloud does not publish one universal server size. Its current administration manual says memory demand varies with users, apps, files and activity. It requires at least 128 MB of RAM per PHP process and recommends 512 MB per process. Those are per-process figures, not a promise that a complete server will run well in 512 MB.
Nextcloud VPS requirements at a glance
| Workload | Starting VPS | Storage starting point | Move up when |
|---|---|---|---|
| Personal files, 1 to 3 active users | 2 vCPU, 4 GB RAM | Library size x 2 | Swap grows, previews queue or office apps are enabled |
| Family or small team, 5 to 20 active users | 4 vCPU, 8 GB RAM | Library size x 2 plus backup retention | Concurrent sync or document editing slows requests |
| Large photo library or frequent office work | 4 to 8 vCPU, 16 GB RAM | Measure previews and versions separately | Initial preview generation or indexing stays CPU-bound |
| More than 50 active users | Measure before buying | Model data growth and recovery time | Separate database, cache or object storage becomes easier to operate |
Count active users, not registered accounts. Ten people synchronizing files at once can create more load than 100 dormant accounts. Collabora, OnlyOffice, antivirus scanning, full-text search and photo analysis also change the sizing decision.
What the official requirements actually say
- Use a currently supported 64-bit operating system, PHP release and database version. Check the live compatibility table before installation because the supported versions change.
- SQLite is intended for testing and minimal instances. MariaDB and PostgreSQL are the practical choices for a persistent multi-user server.
- Nextcloud recommends APCu for local caching and Redis or Valkey for distributed caching and transactional file locking. The project formally tests Redis and its Valkey cache provider.
- System cron is the recommended background-job mode for production. AJAX is the least reliable option because it depends on page visits.
- Preview generation, file activity, temporary upload chunks and background jobs add load that a bare installer does not show.
Official Nextcloud sources checked on October 25, 2026: system requirements, memory caching, background jobs and preview configuration.
RAM and CPU: where the headroom goes
A single-server installation shares memory among the operating system, database, web server, PHP workers, cache and scheduled jobs. Four gigabytes gives a small installation room for those services without treating the PHP per-process recommendation as the whole-server requirement.
CPU demand is bursty. Ordinary file sync is light, while preview generation, photo indexing, antivirus scans and collaborative document editing can keep several cores busy. If the server feels slow only after a large upload, inspect the job queue and CPU time before paying for more RAM.
Use system cron and configure caching before scaling the VPS. Buying more cores cannot compensate for background jobs that run only when someone opens the web interface.
Storage: plan for more than uploaded files
Do not size the disk from user files alone. Reserve room for the operating system, database, previews, temporary upload chunks, deleted-file retention and file versions. A 60 GB library on an 80 GB system disk leaves too little recovery room. Starting near 160 GB is more defensible if the library will grow.
Keep a restorable backup outside the VPS account. A provider snapshot can shorten recovery, but it does not replace a second copy of the database, configuration and user data. Also check whether provider backups include attached block storage. Some products protect only the server disk.
Which VPS model fits Nextcloud?
| Provider | Best fit | Current storage and recovery detail |
|---|---|---|
| Hetzner | European deployment that may outgrow the system disk | Cloud Volumes can grow from 10 GB to 10 TB. Hetzner states that server Backups and Snapshots do not include attached Volumes. |
| Contabo | A large local disk matters more than fine-grained resizing | Current Core, Performance and Storage VPS families use fixed resource bundles. Storage extension and backup options depend on the selected family. |
| DigitalOcean | A clear resize path and separate block storage matter | CPU Droplets can resize CPU and RAM, while disk increases are permanent. Volumes can be moved or enlarged and need their own recovery plan. |
Hetzner for expandable block storage
Hetzner is a practical fit when the application can stay on the server disk while user data grows on a Cloud Volume. The important recovery detail is easy to miss: Hetzner’s documentation says server Backups and Snapshots do not cover attached Volumes. Plan a separate backup for that data. Read the official Volume limits and backup note, then check current Hetzner plans.
Contabo for storage-heavy single-server setups
Contabo now documents separate Core, Performance and Storage VPS families. They differ in storage type, capacity, port speed, snapshots and backup options, so comparing only RAM can lead to the wrong plan. Read the current Contabo VPS product documentation, then check current Contabo plans.
DigitalOcean for a documented growth path
DigitalOcean is the simpler choice when control-panel resizing and separate block storage matter. Its current documentation warns that increasing the Droplet disk is permanent, while a Volume can be detached, moved or enlarged. DigitalOcean Backups protect Droplet disks; plan Volume snapshots or an application-level backup separately. Review the official Droplet resize rules, Volumes documentation and Backups documentation, then check current DigitalOcean plans.
These are existing partner destinations. Using them may earn us a commission without changing your price. The links do not affect the sizing guidance above.
A five-minute buying checklist
- Add up current files and estimate growth for the next 12 months.
- Choose a server tier that leaves memory for the database, Redis and PHP workers.
- Confirm whether the boot disk can shrink after an upgrade. Usually it cannot.
- Confirm whether snapshots cover attached storage. Do not assume they do.
- Put a second backup outside the VPS account and test one restore.
- Choose a region close to the people who sync files most often.
- Recheck the provider’s current checkout price and included traffic before ordering.
If you are still choosing the application, compare Nextcloud and Seafile for collaboration versus lean file sync, or Nextcloud and Dropbox for operational responsibility versus a managed service. The full VPS comparison covers the wider provider set.
FAQs
What is the minimum RAM required to self-host Nextcloud?
Nextcloud documents at least 128 MB per PHP process and recommends 512 MB per process, but it does not define one minimum for an entire VPS. For a single server that also runs the database and cache, 4 GB is our safer starting point for a small installation.
Can Nextcloud run on a 2 GB VPS?
It can run for light personal use, but 2 GB leaves little room once PHP workers, the database, Redis and background jobs operate together. Start with 4 GB if you want fewer tuning constraints or plan to add office, antivirus or photo-analysis apps.
How much storage does a Nextcloud server need?
Use at least the current file library plus space for previews, versions, deleted files, temporary uploads, the database and the operating system. For a small installation, twice the current library is a useful starting estimate, followed by measurement of actual growth.
Can I expand resources later?
Most VPS providers support larger compute tiers or attachable storage, but disk increases may be irreversible and attached storage may not be included in server snapshots. Check the provider’s resize and backup rules before placing user data on a separate volume.
The right starting size is the smallest VPS that still leaves headroom for peak concurrent activity and a tested recovery path, not the smallest one that completes the installer.