Reputation: 1323
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
Reputation: 1323
I need to update PHP version to 7.1.3
https://www.vultr.com/docs/how-to-install-and-configure-php-70-or-php-71-on-ubuntu-16-04
or this will help:
https://www.rosehosting.com/blog/install-php-7-1-with-nginx-on-an-ubuntu-16-04-vps/
Upvotes: 0
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