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

2
  • may be you deleted .htaccess from pub forlder or apache url rewrite module not enabled Feb 12, 2018 at 12:33
  • apache url rewrite is enabled Feb 12, 2018 at 12:41

2 Answers 2

0

Flush cache

Delete var/* and pub/static/*

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

6
  • Am tried the above mentioned things. but there is no change Feb 12, 2018 at 12:29
  • Can you attached a scren from console log?
    – Igor T.
    Feb 12, 2018 at 12:34
  • console log added for your reference Feb 12, 2018 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, 2018 at 12:47
  • yes. its working fine now. Feb 12, 2018 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 *
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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