ngnix php-fpm error centos
March 29, 2015 05:51PM
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"
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready