I believe the main issue will be performance - giving Nc 1gb or 2gb makes it a fair bit faster. But most things should work with a memory setting between 256 and 512 mb.
Thank you for the reply. It’s been so far working without problems even with 384 MB memory limit. It’s a single user instance most of the time and I only use it for occasional file transfers between different iOS devices.
I did adjust the size of preview images in config.php though, in the hope that this would reduce the memory footprint as well as speed up things a little.
‘preview_max_x’ => ‘2048’,
‘preview_max_y’ => ‘2048’,
‘jpeg_quality’ => ‘60’,
Not sure if that accomplishes anything, but it hasn’t caused any problems either.
Hello there! Newby here.
I am trying to locate the php, ini file to update the memory limit but I can’t find the folder! I am not sure if the folder is hidden?
I am using Hestia CP admin panel. Any help would be appreciated!!
Screenshot 2021-03-20 at 17.43.43|441x500
Nextcloud 21
Ubnuntu 20
PHP 7.4
Maria DB
I’m running Nextcloud 20.0.8 on Ubuntu 20.04 LTS and I’ve tried every suggestion in this thread I still get the warning in Nextcloud. * The PHP memory limit is below the recommended value of 512MB.
Nextcloud Settings/System PHP reports:
Version: 7.4.16
Memory Limit: 128 MB
Max Execution Time: 3600
Upload max size: 2 MB
When I run php -i | grep “memory_limit” I get
memory_limit => 1024M => 1024M
I’ve edited every php.ini file on the box to increase memory to 1024M.
Nothing works.
Nevermind… Typo in the php.ini line 2
][PHP] should have been [PHP]
Thanks! I made this and now works!
Hello !
I have the same issue : i think i change every config file and i have still the error on Nextcloud…
Where was your typo ?
Okeeey i found out that i had an .htacess in y nextcloud folder where there were some phprules
So I add php_value memory_limit 512M
inf the apache module
Today I found myself in this problem.
Had in …/php8.0/apache2/php.ini file these values:
upload_max_filesize=1G
post_max_size=1G
memory_limit=512M
Still was nothing.
Finally changed also in …/php8.0/fpm/php.ini as well
Only then worked for me.
Maybe for some one it will helps…
Debian 9 with proper nextcloud installation.
Having RedHat (Fedora, CentOS) I have found out that the SELinux was in some way preventing from updating the memory_limit (tried restart the httpd and the server itself).
My steps were following:
- Disable SELinux (/etc/selinux/config “SELINUX=permissive”)
- Reboot the server
- Enable SELinux (/etc/selinux/config “SELINUX=enforcing”)
- Reboot the server
The memory limit has been updated.
If somebody can explain what was the issue???
Was having the same issue and this was the fix for me.
From the command line, do
php -i
It will show the php configuration info which includes the path to php.ini
Thank you, it works for me.
I also found that this is only useful for nginx installation, if installed with apache2, we just need to change settings in /etc/php/8.1/apache2/php.ini. Whatever, thank you again.