When i open Magento in browser i got

Autoload error

Vendor autoload is not found. Please run 'composer install' under application root directory.

even i have run

composer update
composer install

on the root folder and it says

Nothing to install, update or remove

Is there somewhere I can dig to figure out why the autoload is still failing?

  • vendor directory is exist in your magento root? Sep 5, 2021 at 9:28
  • yes, and there is autoload.php in the vendor folder with a lot of other sub-folders.
    – sonicfly
    Sep 6, 2021 at 2:14

1 Answer 1


Try to run the following commands and then check.

php bin/magento cache:clean 
php bin/magento cache:flush 
php bin/magento indexer:reindex 
php bin/magento setup:upgrade 
php bin/magento setup:static-content:deploy -f 
sudo chmod -R 777 var/ generated/ pub/
  • The problem was resolved by set the ownership of all files under Magento folder chown -R apache:apache /var/www/html/magento
    – sonicfly
    Sep 7, 2021 at 17:10

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.