MeTaLiKiD
MeTaLiKiD

Reputation: 565

Sylius installation doesn't work

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 :

Thanks for help

Upvotes: 4

Views: 1019

Answers (2)

Mario Radomanana
Mario Radomanana

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 with bin/console.

Upvotes: 2

Adam Elsodaney
Adam Elsodaney

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

Related Questions