Archives
08-09 19:48
Today
4
Total
285,040
관리 메뉴

FILife

[Composer] proc_open(): fork failed - Cannot allocate memory 오류 본문

내가 자꾸 까먹어서 쓰는 개발 이야기/PHP

[Composer] proc_open(): fork failed - Cannot allocate memory 오류

FIL 2019. 10. 11. 15:49

방법 1. php.ini의 register_argc_argv 값을 On으로 설정.

 

https://www.laravel.co.kr/posts/23

 

Laravel Korea

#php composer.phar install Loading composer repositories with package information Installing dependencies - Installing laravel/framework (v4.0.0-BETA3) Downloading: 100% PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork f

www.laravel.co.kr

근데 지금은 이것도 안됨..

 

 

방법 2. swap 메모리 늘리기

 

sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024

sudo /sbin/mkswap /var/swap.1

sudo /sbin/swapon /var/swap.1

 

https://stackoverflow.com/a/48024778/4531618

 

PHP Composer update "cannot allocate memory" error (using Laravel 4)

I just can't solve this one. I'm on Linode 1G RAM basic plan. Trying to install a package via Composer and it's not letting me. My memory limit is set to "-1" on PHP.ini Is there anything else I ...

stackoverflow.com

 

방법3. vendor dir 및 composer.lock 초기화

 

rm -rf vendor/ 
rm -rf composer.lock
composer install --prefer-dist

 

https://stackoverflow.com/a/25578447/4531618

 

PHP Composer update "cannot allocate memory" error (using Laravel 4)

I just can't solve this one. I'm on Linode 1G RAM basic plan. Trying to install a package via Composer and it's not letting me. My memory limit is set to "-1" on PHP.ini Is there anything else I ...

stackoverflow.com

 

방법4. .composer 디렉토리 삭제

 

sudo rm -R ~/.composer

 

https://stackoverflow.com/a/37239685/4531618

 

PHP Composer update "cannot allocate memory" error (using Laravel 4)

I just can't solve this one. I'm on Linode 1G RAM basic plan. Trying to install a package via Composer and it's not letting me. My memory limit is set to "-1" on PHP.ini Is there anything else I ...

stackoverflow.com

 

0 Comments
댓글쓰기 폼