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
/var/www/laravel/
directory. I think it shold be/var/www/html/laravel/
And try to runcomposer install
andcomposer update
– Hiren Gohel/var/www/laravel
so this is not the case! – Dmitry Malyscompose update
– Anar Bayramovphp >= 7
version to uselaravel > 5.4
so if you use laravel 5.6 then you need to havephp 7.1.3
or higher. – Hiren Gohel