0
PHP Warning:  require(/var/www/html/magento2/bin/../app/bootstrap.php): failed to open stream: No such file or directory in /var/www/html/magento2/bin/magento on line 14

PHP Fatal error:  require(): Failed opening required '/var/www/html/magento2/bin/../app/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/html/magento2/bin/magento on line 14

Error when execute sudo php bin/magento setup:upgrade

  • Deleting var/generation, var/cache and var/di – Shafeel Sha Oct 10 '19 at 7:45
  • can you share a screenshot? – Mohit Rane Oct 10 '19 at 10:20
0

Please make sure the file /var/www/html/magento2/app/bootstrap.php is available.

No such file or directory

This error indicates it is not.

Also make sure to set correct permission to your files as described:
https://devdocs.magento.com/guides/v2.3/install-gde/trouble/readiness/tshoot_rc_perms.html

With sudo this shouldn't be a problem, nevertheless I recommend not using super user.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.