Fatal error when installing Laravel onSSH using composer

Avatar
  • Answered
I am trying to install Laravel using SSH through composer and I get Fatal error: Out of memory (allocated 128188416) (tried to allocate 65 bytes) in composer.phar/src/Composer/Repository/ComposerRepository.php on line 575.

I have updated php.ini file memory limit for 1.5G and I used next commands:
php composer global require "laravel/installer"
and
php composer.phar global require "laravel/installer". Neither did this solve the situation.


Avatar
Arn
Hello Bernstein, Sorry for the issue with the installation. What code did you use to update the memory and where did you make the change? You might need to make the PHP.INI file recursive. Although you set the memory 1.5 GB, it might not be taking - your error shows memory being exhausted at 128 MB. Try making it 512 MB and try it again. If you have any further questions or comments, please let us know. Regards, Arnel C.