server icon indicating copy to clipboard operation
server copied to clipboard

[Bug] Fresh Install with No "memory_limit" in php7.4.conf causing error about memory limit.

Open seanmmitchell opened this issue 4 years ago • 2 comments

New Ubuntu 20.04 LTS Install, getting error on "Administration > Overview" page at "/index.php/settings/admin/overview". Screen Shot 2021-12-22 at 12 26 46 AM

When trying to resolve by editing the PHP config at "/etc/php/7.4/cli/php.ini", "memory_limit" is set to -1 which according to the documentation, specifies no limit. The desired functionality would be to have the server just check if the system has more than 512 MB available to it for memory with os calls, and only error when the OS doesn't have 512 MB free. Screen Shot 2021-12-22 at 12 22 24 AM

Yes, I have more than 512 MB of memory free. image

seanmmitchell avatar Dec 22 '21 05:12 seanmmitchell

When trying to resolve by editing the PHP config at "/etc/php/7.4/cli/php.ini"...

You're editing the CLI ini file. This is wrong. Edit /etc/php/7.4/fpm/php.ini (or similar).

solracsf avatar Dec 22 '21 07:12 solracsf

When trying to resolve by editing the PHP config at "/etc/php/7.4/cli/php.ini"...

You're editing the CLI ini file. This is wrong. Edit /etc/php/7.4/fpm/php.ini (or similar).

After editing “/etc/php/7.4/apache2/php.ini”, it had the memory_limit set to “128M”. I set it to “-1” and the issue was resolved as expected. Thank you, closing issue.

seanmmitchell avatar Dec 22 '21 08:12 seanmmitchell