Reputation: 565
I have a problem with the installation of Sylius.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 126
This error occur when I run : composer create-project -s dev sylius/sylius-standard Club26
My configuration is :
memory_limit = 1024M in php.ini
Thanks for help
Upvotes: 4
Views: 1019
Reputation: 1698
I got also memory error during the execution of sylius:install
.
I set memory_limit
to -1
to fix it
php -d memory_limit=-1 app/console sylius:install
You may need to replace
app/console
withbin/console
.
Upvotes: 2
Reputation: 7808
Try disabling Garbage Collection during installation.
For global installations of Composer
$ php -d zend.enable_gc=0 `which composer` create-project -s dev sylius/sylius-standard Club26
For local installation of composer.phar
$ php -d zend.enable_gc=0 composer.phar create-project -s dev sylius/sylius-standard Club26
Upvotes: 2