I have just installed Magento 2. I think I have installed the sample data. I did php bin/magento sampledata:deploy
, php bin/magento setup:upgrade
and then php bin/magento setup:di:compile
however the sample data isn't showing on my magento site. Why isn't it showing?
1 Answer
I had the same issue.
thx to @Steve-johnson for pointing me to bin/magento module:status
where I was not able to see the presence of the Modules '*SampleData'.
I was not able to see sample data after the following command:
$ ./bin/magento sampledata:deploy
Since my terminal was small I had to scroll up to read the following error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 88614883 bytes) in Users/.../public_html/vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php on line 247
It seemed that the sample data wasn't installed because of lack of memory.
So... I had to increase the memory to be able to install the sample data.
$ php -dmemory_limit=1024M ./bin/magento sampledata:deploy
After that and $ php bin/magento setup:upgrade
I notice the sample data.
-
Can anyone suggest me how and where to run these commands Commented Aug 17, 2020 at 8:31
-
@SalmanDalalyou can run these commands from command line in the root of your Magento installation.– hans2103Commented Sep 2, 2020 at 10:47
-
/bin/magento sampledata:deploy
? Check magento2/app/etc/config.php or runbin/magento setup:upgrade
is there aMagento_SampleData
listed?bin/magento module:status
to list currently installed modules.