I just did a fresh install of the server and whenever going to Settings > Overview I keep getting the following error: "The PHP memory limit is below the recommended value of 512MB."
ive modified the file at /etc/php/7.2/cli/php.ini to show memory_limit = 1G and I still get that error message
I’ve modified the .htaccess and .user.ini to reflect 1G and whenever restarting apache/server I still get that error message
Also, the maximum_upload_size won’t change from 2 MB even after being specified to be 1G
Hi, did you restart your services after changing these values?
The folder structure and setup of PHP is slightly different on my system, so I can’t fully compare, but I believe I read in the forum somewhere that /etc/php/7.2/cli/php.ini is not the correct config file for web services. This file should be for Command Line Interface usage of PHP only, as far as I know.
Isn’t there another directory under /etc/php/7.2/ which contains a php.ini file?
On an Ubuntu test machine I see : /etc/php/7.2/fpm/php.ini
By default, it seems to have 128MB set as memory_limit. So it would match your value shown in the NC GUI.
so i had to do a search for the other possible php.ini you mentioned and found it under /etc/php/7.2/apache2/php.ini and increased the memory_limit to 512M, restarted apache2 and now the error message is gone. thanks for that input.
now, i tried updating the lines for upload_max_filesize and after reloading the service and the website it went from 2MB to 8MB even when both files are setup to 1G.
You could check the .htaccess and most importantly the .user.ini (both in your NC directory).
The 8 MB are very strange though. The NC defaults are 512 MB, so the mentioned files should already be configured to 512 MB at least. Maybe there are some other PHP settings which restrict the value to 8 MB?
Nonetheless, try to increase the values in .htaccess and .user.ini first and let’s so how that goes.
found the line it was still showing Max Upload Size in the basic settings.
it was related to post_max_size=8M i changed it to 1G and now its showing accordingly.
this setting i modified it on the /etc/php/7.2/cli/php.ini and on /etc/php/7.2/apache/php.ini
did a systemctl restart apache2 and voila!! it got changed to 1G
ill do another fresh install and see if this comes up again, but this time, i know how to fix it…
I’m using a Nextcloud instance with a very low workload, essentially one user with up to three clients connected to it. My hosting provider only allows to set the PHP memory limit to 384 MB, not higher. Therefore my Nextcloud install is complaining in the settings/overview menu. So far everything seems to work fine.
What are the everyday limitations of using Nextcloud with a memory limit of 384 MB?
After a little bit of research I understand that image processing could lead to errors. Are there any other more basic functions that won’t work with 384 MB of memory?
I’m asking because I’m not sure if I should swith providers or not.
I’m running into this exact situation but with a snap install. I cannot find my php configs anywhere and would like to up my current allocation of 128mb. Suggestions?
Same issue with my snap installation. At the Overview section of Settings I get the following message.
The PHP memory limit is below the recommended value of 512MB.
The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the [security tips]
I changed the memory_limit var at the php.ini file under /etc/php/7.0/apache2/ to 512MB, but the problem remains. Also memory_limit is -1 at the php.ini file located at /etc/php/7.0/cli/ (changed it to 512MB, but message remains the same).
So I searched in the snap package where I found that at the php.ini located at /snap/nextcloud/current/config/php/ there is memory_limit = ${PHP_MEMORY_LIMIT}
Chiming in as I am repeatedly having an out of memory issue as well. I have tried the sudo snap set nextcloud php.memory-limit=512M and the restart command repeatedly and the issue persists.
If I view the php.ini file, it is still showing the memory limit at 128MB, and the file says that it is read-only if I try to change it to 512MB and save.
Is there another configuration file that I can modify somewhere?
This definitely seems to be related to something with photos and thumbnails as my nextcloud runs fine until I open a folder full of photos. Then the out of memory error occurs and I have to reboot.
FYI I am using Digital Ocean Ubuntu 18 with 1GB RAM. Used the snap package to install Nextcloud.
I’m at my wit’s end here. I cannot make this thing work and I’m about give up on the entire thing. I am not proficient at all and therefore I cannot run this without using snap. I just don’t have the knowledge to configure and maintain everything without using a snap.
Really need some help to make this change from 128 to 512 and get it to actually save!