Image

Knowledge base → Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)

[Shared hosting]
Date of publication: 20.09.2024

When installing or updating packages in the Plesk control panel, a memory shortage error may occur when using the PHP Composer tool.

To fix this error, it is necessary to increase the memory allocated for PHP Composer for the specific domain.

1. Go to the domain options and select PHP Composer

2. In the menu - Environment Variables, click "specify"

3. Set the memory size in the parameters

memory_limit = 2048M

If the error persists, try increasing the memory value or change this parameter to the following:

COMPOSER_MEMORY_LIMIT = 2048M





No Comments Yet