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 Mar 16 '16 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. – Prasanta Hatui Mar 16 '16 at 14:28

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

| improve this answer | |
  • 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/… – Fabian Schmengler Mar 16 '16 at 13:36
  • i add command that give this permissions to specified folders that magento give same permissions in developer mode – Mostafa Sakr Mar 17 '16 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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