Q
Q
qjawko2018-08-01 12:35:09
PHP
qjawko, 2018-08-01 12:35:09

No www.sock and permission denied?

Error logs:

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;
        }

Everywhere the same user is specified but all the same complains (permission denied). I run from my_user

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question