Magento2 create new sample data

860 Views Asked by At

I had a fresh install of Magento2 and was trying to install sample data by bin/magento sampledata:deploy but it gave back error In PluginManager.php(196) : eval()'d code line 188: chmod(): Operation not permitted . There is an error during sample data deployment. Composer file will be reverted .

Do somebody know what have gone wrong ?

1

There are 1 best solutions below

0
On

That is probably a permission issue. Go to root

sudo su

Then installed magento directory:

cd var/www/html/{magento Directory}

Run command:

php bin/magento sampledata:deploy

Make sure to run indexing and clean the cache after that:

php bin/magento indexer:reindex
php bin/magento c:f