I have installed an instance of Magento 2 and I've SSH'd into my server.

I have updated the composer file by adding this into the require part:

"magento/module-catalog-sample-data": "2.1.0",
"magento/module-configurable-sample-data": "2.1.0",
"magento/module-cms-sample-data": "2.1.0",
"magento/module-sales-sample-data": "2.1.0"

I then run this:

bin/magento sampledata:deploy

But all I've getting is:

Permission denied

What do I need to do here to get the sample data installed?

1 Answer 1


Run it as php bin/magento sampledata:deploy and make sure you have the correct permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.