Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you get this error when you trying to run "composer update":
- PHP Fatal error: Out of memory (allocated 265289728) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php on line 339
- - This could be happening because the instance runs out of memory and has no Swap space enabled...
- - To fix that run this scrips:
- $ 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
- - And then run:
- $ composer update
Add Comment
Please, Sign In to add comment