FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

Пытаюсь установить wordpress используя nginx + php-fpm и получаю ошибку:

2022/08/04 19:56:44 [error] 12685#12685: *8 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 89.22.218.17, server: _, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "196.57.215.121"

Конфиг:

server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/wordpress;
        index index.html index.htm index.nginx-debian.html;
        server_name _;
        location / {
                try_files $uri $uri/ =404;
        }
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}

Ответы (0 шт):