Ngninx laravel权限在index.php被拒绝

时间:2019-01-04 23:22:02

标签: laravel ubuntu nginx ubuntu-16.04

我正在使用Ubuntu 16.04,PHP7,Laravel和nginx。这是我收到的error.log:

2019/01/05 07:11:41 [error] 25778#25778: *77 FastCGI sent in stderr: 
"PHP message: PHP Warning:  
require(/var/www/phish/public/../vendor/autoload.php): failed to 
open stream: Permission denied in /var/www/phish/public/index.php on 
line 24
PHP message: PHP Fatal error:  require(): Failed opening required 
'/var/www/phish/public/../vendor/autoload.php' 
(include_path='.:/usr/share/php') in /var/www/phish/public/index.php 
on line 24" while reading response header from upstream, client: 
109.201.143.58, server: localhost, request: "GET / HTTP/1.1", 
upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:",

0 个答案:

没有答案