Increase Nextcloud PHP memory limit
-
I'm getting an error
Apr 12 16:27:12 [Tue Apr 12 23:27:12.433970 2022] [php7:error] [pid 285] [client 172.18.0.1:57230] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 33554440 bytes) in /app/data/apps/dav/lib/CardDAV/CardDavBackend.php on line 996
, and I'm trying to increase the memory limit to 1025M.So far I've added
'memory_limit' => '1024M'
to/app/data/config/config.php
,memory_limit=1024M
to/app/data/.user.ini
memory_limit=1024M
to/app/data/php.ini
PHP_MEMORY_LIMIT=1024M
to/app/data/config.env
But none of these seems to have worked. Any ideas where I should be able to make this adjustment? The server itself is already allocated to up to 1.5Gb, and the error seems to be PHP related, but I'm not sure where to set this.
-
-
-
-
-
-
@nebulon said in Increase Nextcloud PHP memory limit:
/app/data/php.ini
I undid everything I set, but then I grepped through
/app/data
and foundphp_value memory_limit 512M
in/app/data/htaccess
. It's not present in/app/data/.htaccess
though. I'm confused as to why both of these exist in the first place.But anyway, I commented out the lines in
/app/data/htaccess
, restarted and it looks like it worked!Thanks for the help.