using NextCloud Snap Version and got failure that Memory Limit is under 512 MB.

Where can i change it?

i tried to change in following directory:

sudo vi /etc/php/7.2/cli/php.ini
try to change Limit from = -1 to 512

But nothing happened after Reboot

Thanks a lot

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

I resolved my issue with the PHP memory limit with my snap installation by using the this command:

$ sudo snap set nextcloud php.memory-limit=512M

More information can be found here: https://github.com/nextcloud/nextcloud-snap 222

You can restart the snap by using this command: sudo systemctl restart snap.nextcloud.apache

Hope this helps

Submit an Answer