0
votes

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

2
It shows that your webserver is pointed to the /var/www/laravel/ directory. I think it shold be /var/www/html/laravel/ And try to run composer install and composer updateHiren Gohel
I change the directory to /var/www/laravel so this is not the case!Dmitry Malys
Dammm I need php 7.1.3 on my server for laravel 5.6Dmitry Malys
compose update Anar Bayramov
Yes, you need to have php >= 7 version to use laravel > 5.4 so if you use laravel 5.6 then you need to have php 7.1.3 or higher.Hiren Gohel

2 Answers

1
votes

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!