I have an issue with Magento 2 commands. Every time I do :

bin/magento setup:upgrade

bin/magento setup:di:compile

bin/magento cache:flush

bin/magento cache:clean

rm pub/static, etc...


I get 500 internal server error and I need to refresh 2 to 5 times my browser to see my changes.

Anyone knows what's happening ?

Thank you

1 Answer 1


Run the below command

php bin/magento setup:static-content:deploy -f
  • Thank you but it's not working. I still need to do a c:f to see my modified phtml file and then 500 error when I refresh for the first time :(
    – ccreusat
    Commented Feb 26, 2021 at 8:36
  • c:f is must to see the modification as magento websites run on cache Commented Feb 26, 2021 at 9:44

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.