Guest User

Untitled

a guest
Nov 14th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. If you get this error when you trying to run "composer update":
  2.  
  3. 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
  4.  
  5. - This could be happening because the instance runs out of memory and has no Swap space enabled...
  6.  
  7. - To fix that run this scrips:
  8.  
  9. $ sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
  10. $ sudo /sbin/mkswap /var/swap.1
  11. $ sudo /sbin/swapon /var/swap.1
  12.  
  13. - And then run:
  14.  
  15. $ composer update
Add Comment
Please, Sign In to add comment