Welcome! Log In Create A New Profile


ngnix php-fpm error centos

Posted by alpertayfun 
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 =
; listen = /tmp/php5-fpm.sock

listen.allowed_clients =

listen.owner = nginx
listen.group = nginx
listen.mode = 0660
ngnix www conf :

location ~ \.php$ {
root html;
fastcgi_split_path_info ^(.+\.php)(.*)$;
#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:, server: ***.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://", host: ""
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready