Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Potherca/9fe9bd325bc1489c5371728dabef5c9c to your computer and use it in GitHub Desktop.
Save Potherca/9fe9bd325bc1489c5371728dabef5c9c to your computer and use it in GitHub Desktop.
Steps to setting up a Nextcloud server from scratch using an Ubuntu-based VPS

There are a many ways to run Nextcloud:

  • on localhost, on a VPS, or in a Docker container
  • using Apache, nginx, php -S
  • from git, from zip, via snap

On a VPS, using Snap

On a VPS, using Docker

On localhost, using Docker

On localhost, using php -S

Note that in September 2022, we at Ponder Source switched from "On localhost, using php -S" to "On localhost, using Docker" as our standard development environment, because too many team member were spending too many days (even weeks!) being stuck in a "My local Nextcloud is broken" state. It's a bit harder to connect your step debugger to a PHP process running inside Docker, but in the end we decided that disadvantage is outweighed by the advantage of having a dev setup that you can simply reset with a single command.

TODO: try out something like https://dev.to/jackmiras/xdebug-in-vscode-with-docker-379l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment