The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
The current PHP memory limit is below the recommended value of 512MB.
It can and it is in general different if you call php from command line or via browser. What is a bit difficult is that the value can be changed at different locations. Therefore, the most reliable test is to put a small script which shows you the limit.
Same here. Also modified the entry in fpm/php.ini, message still remains. Maybe it’s related to the -1 entry for cli? (I assume that’s “unlimited”?) Or maybe because it’s “memory_limit” without brackets in PHP7.3’s php.ini?
same problem (v16.0.3.0)
in /etc/php/7.3/cli/php.ini
I set memory_limit = 1000M
then sudo -u www-data php7.3 -i | grep memory_limit
yields memory_limit => 1000M => 1000M
but the error after reboot is still there
There is a third php.ini in play. If you’re using php-fpm, wich is likely, chances are your system is using /etc/php/7.3/fpm/php.ini. And that’s where you go to fix it. Restart php-fpm, and you’re done.
The 7.3 may be 7.2 or different, depending on what you use, of course. A phpinfo.php file will tell you exactly what the webserver is using.
Creating a phpinfo.php file is easy: create a text file, and put:
<?php
phpinfo();
?>
in it. Save as phpinfo.php and put it on your webserver. Call it from your browser and check output.
I’m not really a good programmer but when one of you from a comment said " sudo systemctl restart apache2.service". i thougt, instead of editing the ( in my case ) /etc/php/7.3/cli/php.ini file, i could try the /etc/php/7.3/apache2/php.ini file. After editing the memory limit from memory_limit = 128MB
to memory_limit = 512MB
it worked. I don’t have that “error” anymore.
note that I have changed them both to the same number. I don’t know if that is a important thing to do but I did it anyway.
Did all the steps above, but I still have the error. Edited both /etc/php/7.3/cli/php.ini and etc/php/7.3/apache2/php.ini, restarted apache server (even rebooted the machine), but issue still persist.
Any idea?
Ubuntu 20.04 LTS
Nextcloud v.20.01
Php 7.4 (no fpm is installed)
Output of querying the memory_limit:
php -i | grep memory_limit
memory_limit => 512M => 512M
Then use the method with the phpinfo() from lturbide. Then you see the location of your php.ini file used. checkout as well the apache config files and .htaccess since you can change the parameters there as well.