I'm trying to install an extension on a client's Magento 2 via Composer, but I'm running into the old PHP out of memory error.
My client is hosted with Bluehost, which unfortunately means I can't just go in and change the memory_limit in php.ini, as it's read only, and their cPanel MultiPHP INI Editor doesn't affect SSH. My client has been in touch with Bluehost, and they were told Bluehost doesn't allow SSH memory_limit to be altered, HOWEVER, my client only recently had to install a different extension, which required the memory_limit to be increased, but they did it themselves and they can't remember what commands they used or the file they edited.
I can confirm Composer is installed properly on the server, since I can run the command composer require path/to/extension
. This just results in the out of memory error.
Running the command COMPOSER_MEMORY_LIMIT=-1 composer require amasty/advanced-review
results in the same error:
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 809508864) (tried to allocate 4096
bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer
/DependencyResolver/RuleSetGenerator.php on line 126
Anyone have any suggestions as to what I can do to get things working properly?