2

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

Raphael at Digital Pianism
  • 70,385
  • 34
  • 188
  • 352
Prasanta Hatui
  • 1,811
  • 1
  • 10
  • 16
  • http://magento.stackexchange.com/questions/64857/css-and-javascript-files-are-not-loading-after-magento-2-installation – Stefan Gregori Mar 16 '16 at 09:51
  • 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

1 Answers1

-1

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

Mostafa Sakr
  • 397
  • 2
  • 6
  • 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: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html – 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