Increase Nextcloud PHP memory limit
-
-
@iamthefij Interesting. So, all I did was to add
memory_limit=1024M
in/app/data/php.ini
.And then, after a restart:
Maybe you can remove all the other changes? Can you check by removing all other configs other than this one?
-
@girish I had updated the
.user.ini
because it had previously saidmemory_limit=512M
, so that's why I changed it. Should I remove it or change it back? I've already removed it from everywhere else. -
@iamthefij Interesting. The Cloudron package does not create it and AFAIK neither does nextcloud itself. But yes, you can delete that file entirely.
-
maybe you have some memory_limit leftover in some other config file. The only place to have it should be in
/app/data/php.ini
@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.
-
@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.
-
@iamthefij I should say... it worked to increase the limit. My contacts still don't load.