Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mathishuettl's avatar

Fresh installation: http 500 error & php artisan doesn't work

Hello,

I installed a fresh laravel-project via composer create-project --prefer-dist laravel/laravel blog

But I got two problems:

  1. I get a http 500 error if i try to launch the site
  2. php artisan doesn't work: If i type in php artisan in the directory just nothing happens

PHP Version: 7.3.14 (cli) Composer Version: 1.9.3

0 likes
5 replies
bobbybouwmann's avatar

Did you try to run composer install again?

You get a 500 error so you the application is running. You should see an error in your storage/logs/laravel-{date}.log file. You should find a glue there.

Most of the time on setting up a project the application key is missing, but as you said, you can't run php artisan so, something is wrong with the composer dependencies.

mathishuettl's avatar

new info: I enabled error_logging in php, and it says, that he couldn't find the vendor/autoload.php file and its right. in the vendor directory isn't a autoload.php file... any hints?

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Install should generate the file. Try manually using composer dump-autoload

Please or to participate in this conversation.