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

后端 未结 26 1468
天命终不由人
天命终不由人 2020-11-29 14:46

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\" o

26条回答
  •  无人及你
    2020-11-29 15:21

    Looks like you runs out of swap memory, try this

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

    as mentioned by @BlackBurn027 on comments below, this solution was described in here

提交回复
热议问题