Answer the question
In order to leave comments, you need to log in
How to fix 500 error when requesting nginx to fastcgi in yii2?
Please tell me what could be the cause of the error (copied from nginx/error.log):
connect() failed (111: Connection refused) while connecting to upstream, client: [ip], server: localhost, request: "GET /test.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000 ", host: "[ip]"
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
try_files $uri =404;
}
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