Dmitry Malys
Dmitry Malys

Reputation: 1323

Cant start laravel 5.6 on Ubuntu server with NGINX

I try to install Laravel 5.6 on my production server but I have this error :

[error] 12364#12364: *6 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/laravel/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/laravel/public/index.php on line 24 PHP message: PHP Fatal error: require(): Failed opening required '/var/www/laravel/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/laravel/public/index.php on line 24" while reading response header from upstream

Server os is Ubuntu 16.04 x64

Upvotes: 0

Views: 988

Answers (2)

Hiren Gohel
Hiren Gohel

Reputation: 5042

As you are using Laravel 5.6 you need to have php version 7.1.3 or higher. Try to install php >= 7.1.3

After the installation try to run

composer update

See more in this docs!

Hope this helps you!

Upvotes: 2

Related Questions