I got some errors in my system (ubuntu 18.6) when I clean my cache and setup upgrade. and I am not localhost in URL I am using IP address.


In Cache clean

enter image description here

  • Your php version?? Mar 10, 2020 at 17:03
  • PHP 7.2.24 version Mar 10, 2020 at 17:16
  • Php72 bin/magento c:f try this Mar 10, 2020 at 17:23
  • again get same error after cache flush. Mar 10, 2020 at 17:26
  • 1
    Okay, you change the app/etc/env.php file Mar 10, 2020 at 17:28

2 Answers 2


Go to,

And open the app/etc/env.php


'host' => 'localhost',


'host' => ''

And the php bin/magento s:up now

Solve the issue..


It's seem to be folder permission issue Try This Command in your root directory

sudo chmod -R 777 /var/www/html/magento2
  • it's resolved. localhost problem. Mar 17, 2020 at 15:56

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.