Skip to content
← All solutions
Nextcloud logo

CMS & Websites solution

Run Nextcloud Locally with FlyEnv

Nextcloud deployments commonly use PHP, a database, a web server, and optional Redis. FlyEnv helps keep those local collaboration services coordinated around the Nextcloud project.

Local project stack

Services FlyEnv can manage around Nextcloud

About Nextcloud

Nextcloud is a self-hosted collaboration platform centered on file synchronization, sharing, and extensible team applications. Its server combines user storage with apps for calendar, contacts, office integration, notifications, and external storage.

A local Nextcloud installation is a PHP web application with a database and a writable data directory, typically managed through the `occ` command. Redis, a full-text search backend, an office server, and a reverse proxy are common additions for particular deployments, but they are not mandatory for every instance.

Core capabilities

  • File sync and sharing
  • Apps ecosystem
  • Calendar and contacts
  • External storage
  • Federated sharing
  • occ administration

Common use cases

  • Private team file sharing
  • Self-hosted collaboration portals
  • Document synchronization testing
  • Custom Nextcloud app development

Nextcloud needs storage, web access, and scheduled maintenance

The data directory and database are core. Other services depend on enabled apps, scale, and the way the instance is integrated.

PHP web server and data directory
Serve the application and retain user files outside the application code.
Database and occ
MySQL, MariaDB, or PostgreSQL stores metadata while `occ` performs installation, upgrades, and maintenance.
Cron and optional Redis
Background jobs should run through cron; Redis is often configured for locking or cache, but is optional for a basic instance.
Optional office or search service
Collabora, OnlyOffice, or a search backend is started only when those integrations are enabled.

Project resources

For installation commands, supported versions, and project-specific configuration, refer to the official Nextcloud documentation.

Typical local stack

The exact services depend on the project, its release, and its local configuration. This is a common local setup, not a fixed requirement.

ComponentTypical role
PHPRuns the Nextcloud server.
MySQLMariaDBPostgreSQLStores file and application metadata.
RedisMay support caching and locking.
NginxApacheCaddyServes the local collaboration site.

How FlyEnv helps

  • Match the PHP release

    Use the PHP version supported by the selected Nextcloud release.

  • Run the project database

    Keep database services alongside the local server.

  • Add Redis when configured

    Run cache and locking support when the deployment uses it.

  • Use secure local URLs

    Configure a local domain and HTTPS for browser clients.

Set up the local environment

Project installation stays with the upstream documentation. FlyEnv manages the runtimes, databases, web servers, and supporting services around it.

  1. 1Follow the Nextcloud documentation for installation and release-specific requirements.
  2. 2Select the supported PHP runtime.
  3. 3Start the database selected for the Nextcloud installation.
  4. 4Start Redis when the configuration uses it.
  5. 5Configure a local web server, domain, and HTTPS in FlyEnv.
  6. 6Group the project services for repeatable local starts.

Watch the demo

Follow a complete local project stack managed from FlyEnv.

Thumbnail for Run a full Nextcloud PHP stack locallyRun a full Nextcloud PHP stack locally

Ready to run Nextcloud locally?

Use FlyEnv to manage the runtimes, databases, web servers, and services around your local Nextcloud environment.

Download FlyEnv

Have questions using FlyEnv?