fastcgi_param SCRIPT_FILENAME /home/hello/www$fastcgi_script_name;
10 августа 2010 г. 14:12 пользователь Алексей Сундуков <
public-mail@alekciy.ru> написал:
> А это все случайно не на VPS/VDS крутиться?
>
> 8 августа 2010 г. 13:00 пользователь Hello1 <nginx-forum@nginx.us>
> написал:
> > 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@nginx.org
> > http://nginx.org/mailman/listinfo/nginx-ru
> >
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
--
С уважением Andrey Petrov
mail:andreyp.kt@gmail.com <mail%3Aandreyp.kt@gmail.com>
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru