Answer the question
In order to leave comments, you need to log in
Laravel 8 + OpenServer, Composer package installation error, PHP memory_limit parameter limit. How to fix?
Deployed Laravel 8 on local OpenServer (PHP 7.3).
To work with image files, I'm trying to install the Intervention Image package. However, when using the Composer command, I
composer require intervention/image
get an error:
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://F:/OpenServer/userdata/composer/composer.ph... on line 52
Answer the question
In order to leave comments, you need to log in
You need to edit configuration templates. They are in the userdata/config folder. They can also be opened from the program menu
The second option is to override the parameter from the command line. I do prefer it.
php -d memory_limit=-1 composer.phar <...>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question