Логи ошибок:
2018/08/01 15:27:42 [crit] 4120#0: *1 connect() to unix:/run/php-fpm/www.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "localhost"
2018/08/01 15:27:42 [error] 4120#0: *1 open() "/home/my_user/Documents/php/50x.html" failed (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock", host: "localhost"
www.conf:
listen = 127.0.0.1:9000
user = my_user
group = my_user
listen.owner = my_user
listen.group = my_user
nginx.conf:
user my_user;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
root /home/Qjawko/Documents/php/;
index index.php;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
root /home/Qjawko/Documents/php/;
index index.php index.html index.htm;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
Везде указан один и тот же юзер но все равно жалуется(permission denied). Запускаю от my_user