Composer update creates a lack of memory

While using Symfony 2 it’s common that you have to run the command composer update. Sometimes we’re graced with the error: The following exception is caused by a lack of memory and not having swap configured PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:954 Stack trace:

Install and configure Symfony 2 and Sonata bundle

I found some bugs and inconsistencies while trying to install those 3 bundles by the book, so I decide to create that small tutorial. What we gonna install: Symfony Framework SonataAdminBundle SonataDoctrineORMAdminBundle SonataEasyExtendsBundle First we start by installing the Symfony Framework [cce_bash] composer create-project symfony/framework-standard-edition [/cce_bash] Now we jump to the sonata bundle [cce_bash] composer