2

admin pannel of M2 v2.1.9 not loaded in css and js file means show only html content format.

I'm also run these commond many times but not fix.

  • sudo php -f bin/magento setup:static-content:deploy
  • php bin/magento setup:di:compile
  • php bin/magento indexer:reindex
  • sudo chmod -R 777 var/

Delete Some Folder too:

  • MAGENTO_ROOT/pub/static/_requirejs
  • MAGENTO_ROOT/pub/static/adminhtml
  • MAGENTO_ROOT/pub/static/frontend

Can anyone guide how to fix it?

1 Answer 1

4

Please check it out if static contain .htaccess file or not if not then paste it from this link https://github.com/magento/magento2/blob/2.2-develop/pub/static/.htaccess and do this command

sudo php bin/magento setup:static-content:deploy
sudo php bin/magento cache:flush

Thanks

12
  • Please guide to exactally what do in this file. Nov 4, 2017 at 5:27
  • Hello Please goto Magento2Root/pub/static
    – Moin Malek
    Nov 4, 2017 at 6:09
  • thnks.it worked Nov 4, 2017 at 11:29
  • Cool @AnikeshShahi
    – Moin Malek
    Nov 4, 2017 at 13:21
  • Its again problem in frontend.backend working cool but frontend not loaded css file after replacing .htaccess file now Nov 6, 2017 at 5:58

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.