Answer the question
In order to leave comments, you need to log in
How to properly install composer on a remote server?
Good afternoon.
Tell me how to properly install composer on a remote server?
I tried to do this, following the instructions from google, but at the last step it gives out:
PHP Fatal error: Out of memory (allocated 107216896) (tried to allocate 96 bytes) in phar:///var/www/***********/data/www/******** /memory/composer.phar/src/Composer/Repository/ComposerRepository.php on line 566
Fatal error: Out of memory (allocated 107216896) (tried to allocate 96 bytes) in phar:///var/www/**** ****/data/www/*******/memory/composer.phar/src/Composer/Repository/ComposerRepository.php on line 566
curl -sS https://getcomposer.org/installer | php -- --install-dir=/var/www/****/data/www/*****/yii2_adv
php composer.phar install
php composer.phar update
php -d memory_limit=512 composer.phar update
Answer the question
In order to leave comments, you need to log in
Similar composer errors are easily searched for by a search engine:
https://yandex.ru/search/?text=composer%20Out%20of...
Solution 1 - increase the limit. 512 is very small. Allocate 1gb minimum
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question