Nextcloud migrate to new server error

I migrated nextcloud from the old server to the new server (CentOS 7 > CentOS 8)

but encountered an internal server error,

i checked many places and tried many methods, but nothing worked

is there another place I haven’t checked?

error screen:

nginx error log

[error] 4446#0: *3 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.254, server: abc.xxx.xxx, request: "GET / HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "abc.xxx.xxx"

i tried chown

chown -R nginx.nginx <nextcloud_dir>/

nginx nextcloud config:

php-fpm config:

I didn’t check the details but there seem to be a few differences to the version in the documentation:
https://docs.nextcloud.com/server/18/admin_manual/installation/nginx.html

I’d try this version first and then slowly move to an individual version if needed.