Magento 2.0.2 giving error -Failed to load resource: the server responded with a status of 404 (Not Found)enter image description here

  • Try this php bin/magento setup:static-content:deploy
    – Mukesh
    Commented Mar 16, 2016 at 13:19
  • Already tried 4-5 times after removing pub/static/_requirejs, pub/static/frontend, pub/static/adminhtml . Also removed var/cache, var/generation and var/view_preprocessed - but does work for me. Commented Mar 16, 2016 at 14:28

1 Answer 1


i think it because wrong file permissions try sudo chmod -R 777 app/etc/ var/ pub/static pub/media/

  • It could be a file permission issue, but 777 is never a good idea. Better fix the file ownership and then use the recommended 660 for files and 770 for directories. See: devdocs.magento.com/guides/v2.0/install-gde/prereq/… Commented Mar 16, 2016 at 13:36
  • i add command that give this permissions to specified folders that magento give same permissions in developer mode Commented Mar 17, 2016 at 10:36

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.