Created
August 11, 2015 19:52
-
-
Save sumardi/1c2f8a5be3e1ef43d758 to your computer and use it in GitHub Desktop.
Fixing composer memory_limit on DigitalOcean droplet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var | |
touch swap.img | |
chmod 600 swap.img | |
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 | |
mkswap /var/swap.img | |
swapon /var/swap.img | |
free |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
memory_limit = -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Greate!
Thank you!