Change max upload file size for snappy installation


#1

Hi all,

I successfully installed nextcloud on an ubuntu server 16.04 by using snap and also setted up a dyndns and let’s encrypt.

Man that was easy!
Everything works great but I would like to upload files bigger then 10 GB. I found solutions for doing this with manual installation but none now for a snappy installed version.

Can you help me out?
Thanks and kind regards!


Nextcloud Snap users, please list the issues you're facing
#2

Hello!

I don’t believe that’s possible with the snap version I’m afraid. You’ll be limited to the 2GB predefined.


#3

Yes, unfortunately, it’s not possible to change Apache or PHP settings at this time.


#4

I assume it is still not possible to change settings to allow to sync files larger than 2GB. Is this still the case or can Apache or PHP settings be edited now? Do you all know why this is not editable/changeable? Thanks


#5

I realized that this is a php limit for 32 bit operating systems, mine being Ubuntu Snappy Core OS. Even though I have a Raspberry Pi 3, which is a 64 bit machine, the Raspberry Pi OS’s are still 32 bit systems. I have very few files over 2GB anyways. No big deal.


#6

This limit has been worked around for Nextcloud 13


#7

Sure…? :grinning:


#8

Now I am installed Nextcloud 13.0.2 as a snap on Ubuntu server 18.04 and it is also have a limit 10G. As a soon, I can’t edit php.ini or something. And it have 512M in .htaccess. Is there any way to change max_upload_filesize?
I tried

snap set nextcloud php.upload-max-filesize=50G

but looks like it not work.