0

After installation, the Magento 2, css and js files are not loaded. enter image description here

enter image description here

enter image description here

  • may be you deleted .htaccess from pub forlder or apache url rewrite module not enabled – Yogesh Karodiya Feb 12 '18 at 12:33
  • apache url rewrite is enabled – sijo joseph k Feb 12 '18 at 12:41
0

Flush cache

Delete var/* and pub/static/*

Use php bin/magento setup:static-content:deploy

  • Am tried the above mentioned things. but there is no change – sijo joseph k Feb 12 '18 at 12:29
  • Can you attached a scren from console log? – Igor T. Feb 12 '18 at 12:34
  • console log added for your reference – sijo joseph k Feb 12 '18 at 12:45
  • In DB, table: core_config_data find path "dev/static/sign" and update value to "0"; After that repeate steps, which I wrote above. – Igor T. Feb 12 '18 at 12:47
  • yes. its working fine now. – sijo joseph k Feb 12 '18 at 12:52
0

Remove all files from pub/static except .htaccess

Go to app/etc/di.xml and replace from

Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink

to

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

=> Run Following Commands:

php bin/magento setup:upgrade

php bin/magento setup:di:compile


php bin/magento setup:static-content:deploy -f

php bin/magento cache:flush

chmod -R 777 *

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.