Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Discussion options

You must be logged in to vote

in /etc/php/8.1/cli/php.ini the default is memory_limit = -1 which means unlimited
However, it is generally a good practice to set a reasonable memory limit for your scripts to avoid issues with excessive memory usage.

in /etc/php/8.1/fpm/php.ini the default is memory_limit = 128M which needs to be increased to memory_limit = 512M

This command sets both to memory_limit = 512M

sed -i 's/memory_limit = .*/memory_limit = 512M/' /etc/php/8.1/fpm/php.ini /etc/php/8.1/cli/php.ini

Will be adding to the install script

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tteck
Comment options

Answer selected by Vendo232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants