I'm using nginx version: nginx/1.6.2. I've tried to with only sock file but this is not working.. Anyone knows correct configuration ? Notice : it was running on 1.4.
php-fpm conf :
listen = 127.0.0.1:9000
; listen = /tmp/php5-fpm.sock
listen.allowed_clients = 127.0.0.1
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
ngnix www conf :
location ~ \.php$ {
root html;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/tmp/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include mime.types;
}
Error Line :
2015/03/29 17:34:10 [error] 1320#0: *46 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 1.3.3.3, server: ***.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "1.1.1.1"