Skip to content

Instantly share code, notes, and snippets.

@od3n
Forked from ajmalafif/checklist.md
Created May 16, 2014 17:27
Show Gist options
  • Save od3n/e09422d9b5a8aeea63e4 to your computer and use it in GitHub Desktop.
Save od3n/e09422d9b5a8aeea63e4 to your computer and use it in GitHub Desktop.

Issue: Error running composer install

$ composer install/ $ composer update
$ PHP Fatal error:  Uncaught exception 'ErrorException' with message 'proc_open(): 
fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:990

Solution

$ nano /etc/php5/fpm/php.ini

...

php_admin_value[memory_limit] = 128M # change this accordingly; I did 256M
$ service php5-fpm reload
$ composer update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment