PHP MEMORY ERROR: Allowed memory size of 536870912 bytes exhausted

[PHP] Erro: Allowed memory size of 536870912 bytes exhausted (tried to allocate 45056 bytes) at /snap/nextcloud/45124/htdocs/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#85
de ? por – às 19 de nov. de 2024, 16:54:38

HELLO, I’M NEW TO USING NEXTCLOUD.
HOW TO GIVE MORE RAM TO MY PHP?

I TRIED TO CHANGE THE PHP.INI FILE BUT THE FILE SYSTEM IS READ ONLY.

PLEASE I NEED A DETAILED TUTORIAL

For snap it seems to be a bit different:

1 Like

Hey @Studio_Connect

see Nextcloud snap wiki

and configuration especially PHP memory limit configuration

PHP Memory limit configuration

By default, PHP will use 128M as the memory limit. If you notice images not
getting previews generated, or errors about memory exhaustion in your Nextcloud
log, you may need to set this to a higher value.

If you’d like to set the memory limit to a higher value (say, 512M), run:

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

To set it to be unlimited (not recommended), use -1:

sudo snap set nextcloud php.memory-limit=-1

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.