It all started when i was not able to install modules on my site due to cron job not running. But due to permission errors and all, and after following some steps shown in devdocs magento. My site and backend crashed. I suspect it is due to changing deploy mode to production. Now im not able to change my mode( not permitted) and my back and frontend look like this

enter image description here

enter image description here

Unable to install Modules Magento 2.2 ( Readiness Check Error)

my follow up post

  • This will be happen when css and js are not calling properly. Please check once the js and css structure Commented Jun 14, 2018 at 11:36
  • Regenerate your CSS and JS - this should get your site looking like it did beforehand. Run the bin/magento setup:static-content:deploy command. Commented Jun 14, 2018 at 11:41
  • [Magento\Framework\Exception\FileSystemException] Directory "/home/carefdgi/public_html/var/view_preprocessed/pub/static" can not be created Warning!mkdir(): Permission denied -- getting this error
    – Tanish
    Commented Jun 14, 2018 at 11:42
  • @Tanish Make sure you follow the instructions in the Dev Docs and run those (or indeed any bin/magento) commands as the web server user, otherwise you will run into these permissions errors: devdocs.magento.com/guides/v2.2/install-gde/prereq/… Commented Jun 14, 2018 at 11:44

3 Answers 3


you can try following commands it may help you; Run all the commands. I have faced this issue frequently.

bin/magento setup:upgrade

bin/magento setup:static-content:deploy

bin/magento indexer:reindex
  • oh. it worked. Thanks a lot @rk1990. Been spending almost 2 hours on stupid commands and the fix was the easiest
    – Tanish
    Commented Jun 14, 2018 at 12:34
  • then please vote for the ans :) ... it will help to rank the ans and may be useful for others ... cheers
    – 1990rk4
    Commented Jun 14, 2018 at 12:36
  • oh i already did but isnt publically shown due to my reputation score
    – Tanish
    Commented Jun 14, 2018 at 12:39
 - bin/magento deploy:mode:set developer 
 - sudo chmod -R 777 .
 - sudo rm -rf pub/* 
 - sudo rm -rf generation/ 
 - sudo rm -rf var/cache/ 
 - bin/magento setup:static-content:deploy -f 
 - bin/magento s:d:c
  • getting error - Deployment config file env.php is not writable.
    – Tanish
    Commented Jun 14, 2018 at 11:42
  • It's best to actually explain what these commands do when answering a question, otherwise this answer is not very useful to other people Commented Jun 14, 2018 at 11:42
  • @Tanish sudo chmod -R 777 . from root project Commented Jun 14, 2018 at 11:45
  • @Evgeniy how to do it from root project??
    – Tanish
    Commented Jun 14, 2018 at 11:47
  • @Tanish root project - this folder project Commented Jun 14, 2018 at 11:48

you can try following commands it may help you

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:clear

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.