0

After installing magento on my localhost. It will show an error 500 internal server error and in index.php also have an error on following line -

$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);

and in app folder bootstrap.php file also have an error on following line -

\Magento\Framework\App\Bootstrap::populateAutoloader(BP, []);
3
  • Paste the full stack trace Commented Apr 2, 2018 at 8:03
  • Please open bootstrap.php and uncomment line no.11 and run localhost. Commented Apr 2, 2018 at 8:44
  • Its still giving an error 500 Commented Apr 3, 2018 at 13:52

1 Answer 1

0

Try to change permission folders below to 777

  • app/etc
  • var
  • pub/media

And change permission files below to 644

  • index.php (project root folder)
  • download/index.php

Then force deploy static contents

  • php bin/magento setup:static-contents:deploy -f

Finally flush and clean cache

  • php bin/magento cache:clean
  • php bin/magento cache:flush

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.