← Back to catalog
Nextcloud

Nextcloud

v29.0

Self-hosted productivity platform for file sync, collaboration, and communication

Install

$curl -fsSL https://virtua.sh/i/nextcloud | bash
No server?Virtua.Cloud →

What's included

  • Nextcloud 29.0 (fully configured, ready to use)
  • Caddy web server with auto-HTTPS
  • PHP-FPM (tuned for performance)
  • MariaDB database

After install

  • Login with the admin credentials shown at install
  • No setup wizard exposed to the internet
  • Custom domain: NEXTCLOUD_HOST=my.domain.com

How the install works

Generated from the install script itself -- these are the exact phases it runs on your server.

  1. 1.Pre-flight checks
  2. 2.Opening firewall
  3. 3.Installing system dependencies
  4. 4.Installing Caddy
  5. 5.Installing PHP and dependencies
  6. 6.Setting up database
  7. 7.Installing Nextcloud
  8. 8.Starting PHP-FPM
  9. 9.Tuning PHP
  10. 10.Configuring Nextcloud
  11. 11.Configuring Caddy

Supported Operating Systems

Ubuntu 24Ubuntu 25Debian 12Debian 13Rocky 9Rocky 10Alma 9Alma 10

Requirements

RAM
1GB minimum
Disk
10GB minimum

Configuration

VariableDefaultDescription
NEXTCLOUD_HOSTserver hostnameDomain name or IP. Domains get auto-HTTPS via Let's Encrypt.
NEXTCLOUD_ADMIN_USERadminNextcloud admin username
NEXTCLOUD_ADMIN_PASSrandom 24-charNextcloud admin password
NEXTCLOUD_DB_PASSrandom 24-charMariaDB password

Changelog

v1.1.12026-07-12
  • Rocky/Alma: php-cli and php-process dependencies added (occ setup no longer fails)
  • Firewall ports 80/443 now opened when firewalld is active
  • Credentials moved out of world-readable /etc/motd (kept in /root/.nextcloud-credentials)
v1.1.02026-04-02
  • Switched from Apache to Caddy with auto-HTTPS
  • Automated CLI install (no exposed setup wizard)
  • PHP tuning: hidden version, 512M upload, 300s timeout
  • Custom admin credentials via env vars
v1.0.02026-04-02
  • Initial release with Caddy + PHP-FPM + MariaDB
  • Auto-HTTPS via Let's Encrypt
  • Custom domain support (NEXTCLOUD_HOST env)