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

Djawad's avatar

"php artisan serve" have error

Hello I create the project but when I use command "php artisan serve" this error is shown:

PHP Warning: require(/home/javad/Desktop/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/javad/Desktop/blog/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/home/javad/Desktop/blog/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /home/javad/Desktop/blog/bootstrap/autoload.php on line 17

I try it on linux ubuntu 16.04

help me please.

0 likes
2 replies
rumm.an's avatar

Seems like your php dependencies are missing, Run:

composer install

in terminal from your project's root directory. This will install all the missing dependencies.

1 like
Djawad's avatar

Thanks rumm.an "composer install" completely done, but now I have another error:

PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /home/javad/Desktop/blog/bootstrap/app.php:14 Stack trace: #0 /home/javad/Desktop/blog/artisan(18): require_once() #1 {main} thrown in /home/javad/Desktop/blog/bootstrap/app.php on line 14

Please or to participate in this conversation.