[Resolved] Nginx FastCGI sent in stderr

Fix error:
[error] 5331#0: *1 FastCGI sent in stderr: "Unable to open primary script: /scripts/index.php (No such file or directory)" while reading response header from upstream, client: aaa.bbb.ccc.ddd, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"

Open /etc/nginx/conf.d/default.conf
Add fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
to location ~ \.php$

Nhận xét

Bài đăng phổ biến