Skip to content

Instantly share code, notes, and snippets.

@michielbdejong
Last active September 30, 2022 08:08
Show Gist options
  • Save michielbdejong/588c89d5c5c508ba94cddeec744b0dd7 to your computer and use it in GitHub Desktop.
Save michielbdejong/588c89d5c5c508ba94cddeec744b0dd7 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
* Follow https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-22-04
## On a VPS, using Docker
* With nc-sciencemesh enabled: https://github.com/pondersource/sciencemesh-nextcloud#demo-setup
* With solid-nextcloud enabled: https://github.com/pdsinterop/solid-nextcloud/blob/main/setup-test-server.sh
## On localhost, using Docker
* With nc-sciencemesh enabled:
* [generate cert](https://github.com/cs3org/ocm-test-suite/blob/87a8cb0879e30573ac5accd0b44b1966b1d39440/gencerts.sh#L4-L30) for nc1.docker
* [build](https://github.com/cs3org/ocm-test-suite/blob/87a8cb0879e30573ac5accd0b44b1966b1d39440/rebuild.sh#L23-L35) for nc1
* [start nc1.docker with maria1.docker](https://github.com/cs3org/ocm-test-suite/blob/87a8cb0879e30573ac5accd0b44b1966b1d39440/scripts/start-from-Nextcloud.sh)
* With solid-nextcloud enabled: https://github.com/pdsinterop/solid-nextcloud/blob/main/run-solid-test-suite.sh
## On localhost, using `php -S`
* For instance [these install instructions](https://github.com/pondersource/sciencemesh-nextcloud/blob/01ce1296c9e4d0c85dcc10b4c7bc6434eabfce92/README.md#install-dependencies
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