Answer the question
In order to leave comments, you need to log in
How to solve the problem of installing composer - Cannot allocate memory on CentOs?
There is such a problem:
Hosting on CentOs I execute
the command from under the Docker container: composer install
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooti... for details
[ErrorException]
proc_open
(): fork failed - Cannot allocate
memory
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question