3

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 :

  • Wamp on Win7 64bits (for Apache, PHP and MySQL)
  • I have git installed
  • I use cmder to run my command
  • I have changed memory_limit = 1024M in php.ini
  • I tried with composer install with Windows Setup, and with composer.phar

Thanks for help

MeTaLiKiD
  • 395
  • 3
  • 11
  • 1
    Are you sure you have changed it in the correct php.ini? Try `php -i` and check which configuration file is loaded by your PHP installation - it just might be different... – Robert Rossmann Jan 13 '15 at 22:39
  • @RobertRossmann afaik, Composer overrides the value itself. – Wouter J Jan 13 '15 at 23:44

2 Answers2

2

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
Adam Elsodaney
  • 7,722
  • 6
  • 39
  • 65
2

Just in case, 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
Mario Radomanana
  • 1,698
  • 1
  • 21
  • 31