0

I am moving from one server to another server site is broken. Database works fine but issue is css and js not generating. The server is shared hosting. How can I fix the issue??

6
  • 1
    Did you run static deploy command? Commented Mar 19, 2017 at 8:49
  • yes... but not working... :( Commented Mar 19, 2017 at 12:04
  • Is there any Browser error? Can you take a screenshot? Commented Mar 19, 2017 at 14:56
  • 1
    Do you get an error when running the static deploy command?
    – user50408
    Commented Mar 19, 2017 at 22:29
  • 1
    Check pub folder permissions. Commented Mar 20, 2017 at 8:17

1 Answer 1

2

I have written an excellent article on solving broken Magento 2 frontend. You can check and see if any one of the below method works for you or not:

  • Enable Apache Rewrite
  • Fix Files & Folders Permissions
  • Delete Generated Files, Sessions & Caches
  • Deploy Static View Files

For further reference, please have a look at this blog post.

https://magenticians.com/fix-broken-magento-2-installation/

2
  • yes this is really useful. Though i have fixed my problem, i have a question. In shared hosting we can not run console, in that case how can we fix the issue. Commented Mar 23, 2017 at 13:52
  • 1
    @FaysalMahamud Each and every web hosting offers SSH access. You will need to contact your hosting provider administrator to give you SSH credentials so that you can use CLI. I'm not sure about it, but I think they will going to charge you extra for it since by default, shared hosting providers do not offer SSH access. Commented Mar 23, 2017 at 14:22

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.