Ngninx laravel Отказано в доступе на index.php - PullRequest
0 голосов
/ 05 января 2019

Я использую 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:",
...