无法使用 NGINX 在 Ubuntu 服务器上启动 laravel 5.6
Cant start laravel 5.6 on Ubuntu server with NGINX
我尝试在我的生产服务器上安装 Laravel 5.6,但出现此错误:
[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
服务器 os 是 Ubuntu 16.04 x64
我需要将 PHP 版本更新到 7.1.3
https://www.vultr.com/docs/how-to-install-and-configure-php-70-or-php-71-on-ubuntu-16-04
或者这会有所帮助:
https://www.rosehosting.com/blog/install-php-7-1-with-nginx-on-an-ubuntu-16-04-vps/
当您使用 Laravel 5.6
时,您需要 php version 7.1.3
或更高版本。尝试安装 php >= 7.1.3
安装后尝试运行
composer update
在此 docs 中查看更多信息!
希望对您有所帮助!
我尝试在我的生产服务器上安装 Laravel 5.6,但出现此错误:
[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
服务器 os 是 Ubuntu 16.04 x64
我需要将 PHP 版本更新到 7.1.3
https://www.vultr.com/docs/how-to-install-and-configure-php-70-or-php-71-on-ubuntu-16-04
或者这会有所帮助:
https://www.rosehosting.com/blog/install-php-7-1-with-nginx-on-an-ubuntu-16-04-vps/
当您使用 Laravel 5.6
时,您需要 php version 7.1.3
或更高版本。尝试安装 php >= 7.1.3
安装后尝试运行
composer update
在此 docs 中查看更多信息!
希望对您有所帮助!