Skip to content

autoload error after installing Magento website locally

After I installed a website from git and imported the corresponding database i tried getting the website to work locally. But I keep getting the error

{$e->getMessage()}
HTML; http_response_code(500); exit(1); } $bootstrap = Bootstrap::create(BP, $_SERVER); /** @var MagentoFrameworkAppHttp $app */ $app = $bootstrap->createApplication(MagentoFrameworkAppHttp::class); $bootstrap->run($app); 

I looked at the solution from: After Install magento 2.4.5 facing issue AutoLoad error

But I already got the libapache2-mod-php installed.
Some specs:

  • Apahce2
  • php8.1
  • mysql