FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client

File not found.
Make sure SCRIPT_FILENAME same location like root:

server {
server_name 192.168.1.100;
location / {
root /var/www/html;

location ~* \.php$ {
fastcgi_pass unix:/var/run/php/php.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *