Recently I tried to install Magento 2 with sample data and failed. I added the proper package to the composer.json
file and when I run composer update
it always fails just before finishing downloading:
- Installing magento/sample-data-media (0.42.0-beta1)
Downloading: 90%
Fatal error: Out of memory (allocated 652738560) (tried to allocate 556269568 by
tes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Util/
RemoteFilesystem.php on line 175
I set memory_limit
in my php.ini
file to 2048MB
but it didn't help. I checked in command line that it is set correctly:
c:\WT-NMP\WWW\magento_2>php -r "echo ini_get('memory_limit');"
2048M
c:\WT-NMP\WWW\magento_2>php -r "$a = []; while(true) { $a[] = 'a'; }"
Fatal error: Out of memory (allocated 2019033088) (tried to allocate 24 bytes) i
n Command line code on line 1
Does anyone know what the problem might be? Or maybe you know some hacky way to install sample data without Composer?