I have installed Magento 2.2.5 on my server using Cpanel. The problem I am facing is my CSS is not working properly. The Url of my site is http://emcd.tk/. I've looked on so many solutions but didn't find any proper one. I also attached the picture showing errors.
Things I've tried so far:
- Giviving permission for var & pub folders.
- php bin/magento setup:static-content:deploy
- Do reindex php bin/magento indexer:reindex
- Clearing cache using commands [php bin/magento cache:clean] and [php bin/magento cache:flush]
The reason of doing this if you take the source code and check, the CSS & JS file path may wrong. So that the style won’t render in a browser even I tried to make it correct but didn't work properly.
I would appreciate any kind of help. Thank you
Best Answer
It has happened to me several times. This must be some kind of installation/compilation or deployment.
Try and run this command:
If it doesn't work after this, you should try re-installing.