Increasing asdf-php Memory LimitsNovember 26, 2020
I typically use asdf for managing versions of various languages installed on my system. Recently, I tried to spin some new php projects for tinkering around with, and ran into issues with composer running out of memory.
Frustratingly, I couldn't determine how the memory available to php and by extension composer was being set. After 30 minutes of poking around, I realized, the asdf-php plugin doesn't create a default
php --ini confirmed I was running the asdf version of php as well as the location to place the config file--in my case
~/.asdf/installs/php/7.3.20. Quick vim open to create the file, and bam composer was running smoothly again!
# ~/.asdf/installs/php/7.3.20/php.ini memory_limit = 2G