Hello People.
I upgraded from leap15.3 leaep15.4, now the wordpress site is not working.
the browser shows 'Access denied ’ message when visiting the website.
$ sudo tail /var/log/nginx/error.log
2022/07/27 00:34:39 [error] 2905#2905: *78 FastCGI sent in stderr: "Unable to open primary script: /var/www/html/dongip.site/index.php (Per
mission denied)" while reading response header from upstream, client: 172.68.110.191, server: www.dongip.app, request: "GET / HTTP/1.1", up
stream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host
I upgraded the php7 to php8, but still the issue is exist.
> head /etc/php8/fpm/php-fpm.d/www.conf
; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
; - 'chdir'
; - 'php_values'
; - 'php_admin_values'
; When not set, the global prefix (or /usr) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = nginx
group = nginx
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = /var/run/php-fpm/php-fpm.sock
; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions. The owner
; and group can be specified either by name or by their numeric IDs.
; Default Values: user and group are set as the running user
; mode is set to 0660
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
...
..
.
> head /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
...
..
.