Answer the question
In order to leave comments, you need to log in
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"
listen = 127.0.0.1:9000
user = my_user
group = my_user
listen.owner = my_user
listen.group = my_user
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;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question