# Is it better to install Nextcloud via snap or setup a web server?

**URL:** <https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237>\
**Category:** ℹ️ Support\
**Created:** [April 9, 2020, 4:50pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237 "2020-04-09T16:50:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiiwii](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kiiwii/32/23522_2.png) [@kiiwii](https://help.nextcloud.com/u/kiiwii)\
**Post date:** [April 9, 2020, 4:50pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/1 "2020-04-09T16:50:16Z")

</div>

Hello everyone!

I’m wanting to install Nexctloud as I finally have a server running and would like to know what advantages there are to running one over the other. If it helps, here’s what the use case I need Nextcloud for.

I’m wanting to replace using Google Drive as I only have the free tier and I’m too poor to pay a monthly fee for more than 15gb of storage. I have about 1tb on my server and I’m most likely the only person to ever use it in my family, though if someone ever wants to use it I’d want to easily make an account for them. I also would like to run it under a directory of my domain name, something like [https://web.site/nextcloud](https://web.site/nextcloud) rather than from the root.

Which one would do the job better? Thank you!

---

<div class="post-metadata">

**Author:** ![joshmorel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joshmorel/32/8709_2.png) [@joshmorel](https://help.nextcloud.com/u/joshmorel)\
**Post date:** [April 9, 2020, 4:59pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/2 "2020-04-09T16:59:02Z")

</div>

Hi. I can only speak from my own experience. The snap is great for your scenario - mostly myself with shared links for family members, friends etc. I’ve been running for several major versions (at least 15, maybe back to 13?) and only have ever had one bad update that required a few days for the maintainers to fix. But that was over a year and have had absolutely no issues since.

There _might_ be some value in running a manual install if you want to get some understanding of the different components that work together but that’s only for interest sake. The snap is reliable.

For snap run an Ubuntu LTS (e.g. 1804). It will work on centos, etc but just stick with the most standard host.

---

<div class="post-metadata">

**Author:** ![kiiwii](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kiiwii/32/23522_2.png) [@kiiwii](https://help.nextcloud.com/u/kiiwii)\
**Post date:** [April 9, 2020, 5:03pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/3 "2020-04-09T17:03:47Z")

</div>

Alrighty, I’ll look into the snap install then! My server actually is running 18.04 LTS lol

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [April 10, 2020, 5:11am UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/4 "2020-04-10T05:11:15Z")

</div>

> [@kiiwii](#):
>
> I also would like to run it under a directory of my domain name, something like [https://web.site/nextcloud](https://web.site/nextcloud) rather than from the root.

You need to setup a reverse proxy to accomplish that. Here is a working setup (which I never tried myself):

> <https://github.com/nextcloud-snap/nextcloud-snap/issues/444#issuecomment-365409633>
>
> I've installed the Nextcloud Snap on Ubuntu 16.04 (thanks for making it so easy!…) but my server hosts other experiments and I'm getting stuck connecting Nginx to php. 
> 
> I added the relevant parts from the \[admin docs example\](https://docs.nextcloud.com/server/12/admin\_manual/installation/nginx.html#nextcloud-in-a-subdir-of-nginx) to my nginx config and received 502 Gateway Error messages when accessing \`/nextcloud\`. Since there was no \`/var/run/php5-fpm.sock\` and nothing listening locally:
> \`\`\`
> patrick@server:~$ nc -zv 127.0.0.1 9000                                                                                                                     
> nc: connect to 127.0.0.1 port 9000 (tcp) failed: Connection refused
> \`\`\`
> ..I looked for way to connect to the Snap's php instance, and then finally just installed \`php-fpm\` (v7.0) alongside nginx. Now I receive the cryptically short error message "\`File not found.\`" when accessing the \`/nextcloud\` subdirectory. 
> 
> Am I missing something easy?

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [April 10, 2020, 6:07am UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/5 "2020-04-10T06:07:24Z")

</div>

The snap package has some problems. That’s just my opinion though. The version lags behind, it makes custom configuration difficult, and it’s also hard to add missing features such as SMB support.

I run mine in Docker. I [wrote a guide](https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430) for setting it up using Docker on Ubuntu 18.04.

---

<div class="post-metadata">

**Author:** ![kiiwii](https://help.nextcloud.com/user_avatar/help.nextcloud.com/kiiwii/32/23522_2.png) [@kiiwii](https://help.nextcloud.com/u/kiiwii)\
**Post date:** [April 10, 2020, 5:31pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/6 "2020-04-10T17:31:25Z")

</div>

I’ve never used docker before, is it easy to use as a newbie?

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [April 10, 2020, 6:26pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/7 "2020-04-10T18:26:21Z")

</div>

It’s not bad and is worth taking a few minutes to learn. It is a little bit different. If you look at my guide, I have all the steps for Ubuntu if you want to give it a shot. You’ll have to make an adjustment on the reverse proxy to run it in a subfolder of the web root, but that should be fine.

One really nice benefit to Docker is you don’t have compatibility issues because the image includes all the libraries it needs. If you look over the forum, there’s always someone having a problem with PHP because their chosen OS has an old version, or an upgrade broke a dependency, or some package that particular OS needs to run MC wasn’t installed, etc… You don’t have any of that with Docker because it uses a tested working set that’s in the image with it regardless of what’s installed in your host OS.

Upgrades are also really easy because you just tell Docker to pull an updated image and everything in it is updated to a known working set of software. And you can it to use a specific version, for example if you want to hold off on the next major version until is has a couple updates out.

You sound like someone who likes tinkering with this stuff, so you’ll probably like it.

---

<div class="post-metadata">

**Author:** ![anon9582441](https://help.nextcloud.com/letter_avatar/anon9582441/32/6_22734026db12803ebb3e059622ac3534.png) [@anon9582441](https://help.nextcloud.com/u/anon9582441)\
**Post date:** [April 11, 2020, 3:25pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/8 "2020-04-11T15:25:03Z")

</div>

You still need a webbserver for the reverse proxy. What advantage is it to run NC in a container for average home setup? It only adds networking and storage access issues.

---

<div class="post-metadata">

**Author:** ![anon99283430](https://help.nextcloud.com/letter_avatar/anon99283430/32/6_22734026db12803ebb3e059622ac3534.png) [@anon99283430](https://help.nextcloud.com/u/anon99283430)\
**Post date:** [April 11, 2020, 3:38pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/9 "2020-04-11T15:38:29Z")

</div>

I’d keep it as simple as possible and with as less external dependencies as possible:  
No snap, no docker, no raid, no other fancy shit.

Small, energy-efficient hardware which fits my needs, bare-metal install of os and the required services. Running this kind of nc setup at home for quite some time now.

---

<div class="post-metadata">

**Author:** ![anon9582441](https://help.nextcloud.com/letter_avatar/anon9582441/32/6_22734026db12803ebb3e059622ac3534.png) [@anon9582441](https://help.nextcloud.com/u/anon9582441)\
**Post date:** [April 11, 2020, 3:52pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/10 "2020-04-11T15:52:22Z")

</div>

Just never forget backups 🙂

---

<div class="post-metadata">

**Author:** ![joshmorel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joshmorel/32/8709_2.png) [@joshmorel](https://help.nextcloud.com/u/joshmorel)\
**Post date:** [April 11, 2020, 4:09pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/11 "2020-04-11T16:09:26Z")

</div>

I would recommend against Docker if you are new to Docker & Nextcloud. As soon as you run into issues you will be in nightmare land and have no idea how to troubleshoot things. You also may have no one to help you (unlike the snap package which is maintained by the NC folks and has GitHub repo). If you’re interested in learning Docker sure might be worth considering but maybe not now.

I’d say either a) snap (being behind on versions is not necessarily a bad thing) or b) standard install without deviating from Nextcloud manual’s recommendations - Ubuntu LTS, Apache, MariaDB.

---

<div class="post-metadata">

**Author:** ![anon99283430](https://help.nextcloud.com/letter_avatar/anon99283430/32/6_22734026db12803ebb3e059622ac3534.png) [@anon99283430](https://help.nextcloud.com/u/anon99283430)\
**Post date:** [April 11, 2020, 5:26pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/12 "2020-04-11T17:26:50Z")

</div>

Backups are mandatory no matter what kind of deployment you’ve chosen. no backup? no mercy!

I had a short look at NextcloudPi before i’ve decided to do a “manual” setup. It may be nice, but it adds additional layers of software which i need to understand if i want to be able to troubleshoot on my own when something goes wrong. Doing a manual install may take longer for the first steps, but there are plenty of howtos out there (i used [this one](https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10) for my latest setup) and you learn more about what and why are you doing things.

From my point of view KISS applies to backups as well. It’s not only about having backups, it’s about knowing how they work and what you need to do to restore files. Thats why i use rather simple shell scripts and rsync. Having “some magic” doing things you don’t understand is essentially like having no backup…like:

> [@Help to recover files](https://help.nextcloud.com/t/help-to-recover-files/77441):
>
> Hi. Need some help. Im a noob so… :-/ My nextcloudpi did a backup to second usb drive some nights ago. After it can not find The drive. The ncdata path does not exists. I can not change it in webui. How can I get those files back? Im going to do a new setup using a new SD and a new usb hdd. Byt I need The files back. How? Only have win 10 PRO. Thanx

To be honest: i’ve been working as a “DevOps” for about 20 years, have plenty of experience with linux and system administration in general. This is for sure a better point to start from then for many other people.

---

<div class="post-metadata">

**Author:** ![joshmorel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joshmorel/32/8709_2.png) [@joshmorel](https://help.nextcloud.com/u/joshmorel)\
**Post date:** [April 11, 2020, 6:53pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/13 "2020-04-11T18:53:03Z")

</div>

> [@anon99283430](#):
>
> Doing a manual install may take longer for the first steps, but there are plenty of howtos out there (i used [this one](https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10) for my latest setup) and you learn more about what and why are you doing things.

I think this is one of the most important point - thanks @anon99283430 for chiming in after my initial response. I started with **manual install** and that was useful for me from a learning and understanding perspective, even though I switched to a `snap` which I’m now happy with. After more consideration, I’d endorse this approach over `snap` for the typical first-timer Nextcloud admin.

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [April 15, 2020, 12:34pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/14 "2020-04-15T12:34:34Z")

</div>

> [@anon99283430](#):
>
> I’d keep it as simple as possible and with as less external dependencies as possible

Which is exactly the advantage of Docker. All dependencies are internal, tested, and stable, and with docker-compose, the setup is quite simple.

> [@joshmorel](#):
>
> You also may have no one to help you (unlike the snap package which is maintained by the NC folks and has GitHub repo).

The Docker version is also maintained by Nextcloud (and tested by the Docker team — it’s an official image) and has a GitHub repo.

Please don’t knock it if you aren’t familiar with it.

---

<div class="post-metadata">

**Author:** ![anon99283430](https://help.nextcloud.com/letter_avatar/anon99283430/32/6_22734026db12803ebb3e059622ac3534.png) [@anon99283430](https://help.nextcloud.com/u/anon99283430)\
**Post date:** [April 15, 2020, 12:57pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/15 "2020-04-15T12:57:19Z")

</div>

> [@KarlF12](#):
>
> Which is exactly the advantage of Docker. All dependencies are internal, tested, and stable, and with docker-compose, the setup is quite simple.

And it adds additional layers of software and configuration and thus complexity. It does not eliminate dependencies, it just moves them to another layer of the stack.

It’s just a matter of “trade off” - for personal use i’d avoid such things. This may be another case in a business environment.

---

<div class="post-metadata">

**Author:** ![joshmorel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joshmorel/32/8709_2.png) [@joshmorel](https://help.nextcloud.com/u/joshmorel)\
**Post date:** [April 15, 2020, 1:00pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/16 "2020-04-15T13:00:00Z")

</div>

> [@KarlF12](#):
>
> The Docker version is also maintained by Nextcloud (and tested by the Docker team — it’s an official image) and has a GitHub repo.
> 
> Please don’t knock it if you aren’t familiar with it.

An oversight on my part. When I first played around with Docker as an option (v9?) there was an unsupported image. I didn’t recheck as part of this conversation.

I will give try it out of curiousity but not in production since as recommended on the repo **This image is designed to be used in a micro-service environment.**

Not my environment and certainly not the OP’s. Docker isn’t mentioned as an option in the admin manual at all so if she wants get help in the future it’s best to go down a more appropriate route.

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [April 15, 2020, 1:13pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/17 "2020-04-15T13:13:12Z")

</div>

> [@anon99283430](#):
>
> And it adds additional layers of software and configuration and thus complexity.

True of every method other than manual installation.

> [@anon99283430](#):
>
> It does not eliminate dependencies, it just moves them to another layer of the stack.

That’s just mincing words. The dependencies are automatically and permanently satisfied inside the image such that you don’t have to install them or ever have any conflicts or broken packages.

> [@joshmorel](#):
>
> Docker isn’t mentioned as an option in the admin manual at all so if she wants get help in the future it’s best to go down a more appropriate route.

Docker-compose is a micro-service environment, so that’s kind of a meaningless phrase.

Where are you getting that use of Docker is inappropriate? They wrote official documentation for the Docker installation. It’s right here:

[https://hub.docker.com/\_/nextcloud](https://hub.docker.com/_/nextcloud)

And it’s listed as an installation method at [nextcloud.com](http://nextcloud.com).

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [April 15, 2020, 1:23pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/18 "2020-04-15T13:23:14Z")

</div>

Anyway, it’s a supported and well-maintained method of running Nextcloud, and it just so happens I had already written a guide for doing this setup on the OP’s OS, which is also how I run it personally at home and in my clients’ networks.

---

<div class="post-metadata">

**Author:** ![joshmorel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/joshmorel/32/8709_2.png) [@joshmorel](https://help.nextcloud.com/u/joshmorel)\
**Post date:** [April 15, 2020, 3:54pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/19 "2020-04-15T15:54:16Z")

</div>

> [@KarlF12](#):
>
> Where are you getting that use of Docker is inappropriate? They wrote official documentation for the Docker installation. It’s right here:

Inappropriate for the OP’s scenario and stated level of Docker knowledge (“none”). I can accept that it’s a totally valid option for production, but for the OP as an admin I can’t accept it as a recommendation here. That guide must be beyond daunting for someone who’s never done anything with Docker.

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [April 15, 2020, 4:20pm UTC](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237/20 "2020-04-15T16:20:16Z")

</div>

> [@joshmorel](#):
>
> Inappropriate for the OP’s scenario and stated level of Docker knowledge (“none”).

As an aside, that is _exactly_ where I started running this at home. At the time, I had zero Nextcloud experience, and zero Docker experience. And it turned out to be a great thing and well worth a few minutes to figure out the Docker basics.

> [@joshmorel](#):
>
> I can accept that it’s a totally valid option for production, but for the OP as an admin I can’t accept it as a recommendation here.

That’s fine. You’re entitled to your opinion, but _your_ approval is not needed for _my_ recommendation. You don’t have to go trying to shoot down other people’s recommendations and cause a mess for the OP for your own recommendation to be valid.

> [@joshmorel](#):
>
> That guide must be beyond daunting for someone who’s never done anything with Docker.

Knocking the Docker installation without knowing much about it, and now my guide too without looking at it? Nice.

FYI I spent hours writing it and did a test installation side by side to make sure everything was right and produced a working system. I can follow my own guide and set a system up from bare metal in about an hour. My guide is actually very easy to follow, in my opinion, and was written for the OP’s exact scenario.

It’s also worth noting, the Docker part is short and easy, and the rest is a lot of the same steps that are in other guides involving a reverse proxy.

Anyway, I’ve made my contribution to the OP’s question and am satisfied that it’s a good one, and I’m content to leave it at that.

[Next page](https://help.nextcloud.com/t/is-it-better-to-install-nextcloud-via-snap-or-setup-a-web-server/77237.md?page=2)
