Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Nginx не хочет работать чере з unix socket с php-fpm
- To: nginx-ru@xxxxxxxxx
- Subject: Nginx не хочет работать чере з unix socket с php-fpm
- From: "Hello1" <nginx-forum@xxxxxxxx>
- Date: Sun, 08 Aug 2010 05:00:43 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=s6zVUiNtICwlXwWReKcWsavzViSURTmE116LC+5F9Bk=; b=DtVpGHf1lQK0GkmGNkRWld5KGbHt7zYKyeqAEuWRx0yvuoP9oAUFbUnvpLV94/nmqfpQDSkRPZEsR609EgKe9gKdubP4hXwEvoVnJ0FXh90f9Ik90BcyMAA68xupxGGb;
nginx 0.7.67, php 5.3.3
Часть php-fpm.conf
[code]
listen = /tmp/fastcgi.socket
[/code]
Часть nginx.conf
[code]
location ~ \.php$ {
fastcgi_pass unix:/tmp/fastcgi.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/home/hello/www/$fastcgi_script_name;
include fastcgi_params;
}
[/code]
В логах php-fpm ошибок нет, в логах nginx
такая ошибка
[code]
[crit] 77665#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No
such file or directory) while connecting to upstream, client:
xx.xx.xx.xx, server: localhost, request: "GET /index.php HTTP/1.1",
upstream: "fastcgi://unix:/tmp/fastcgi.socket:", host: "yy.yy.yy.yy"
[/code]
/tmp/fastcgi.socket создается после запуска php-fpm
с правами 0777 и владльцем www:www
Через порт всё работает.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,117453,117453#msg-117453
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|