1 |
Hello, |
2 |
|
3 |
nginx list dialog: |
4 |
|
5 |
On Tue, 3 Apr 2012 04:02:14 -0400 (EDT) |
6 |
"locojohn" <nginx-forum@×××××.us> wrote: |
7 |
|
8 |
> mkdir -p /var/run/fastcgi/php-fpm.sock |
9 |
> |
10 |
> php-fpm.conf: |
11 |
> |
12 |
> ;listen = 127.0.0.1:9000 |
13 |
> ;listen.allowed_clients = 127.0.0.1 |
14 |
> listen = /var/run/fastcgi/php-fpm.sock |
15 |
> listen.owner = nginx |
16 |
> listen.group = nginx |
17 |
> |
18 |
> nginx.conf: |
19 |
> |
20 |
> location \.php$ { |
21 |
> include fastcgi_params; |
22 |
> fastcgi_pass unix:/var/run/fastcgi/php-fpm.sock; |
23 |
> } |
24 |
|
25 |
Thx for advice. But will not run. When i start nginx it come only |
26 |
|
27 |
gentoo-desk ~ # /etc/init.d/nginx start |
28 |
* Checking nginx' configuration ... |
29 |
nginx: [emerg] invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35 |
30 |
nginx: configuration file /etc/nginx/nginx.conf test failed |
31 |
nginx: [emerg] invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35 |
32 |
nginx: configuration file /etc/nginx/nginx.conf test failed |
33 |
* failed, please correct errors above [ !! ] |
34 |
* ERROR: nginx failed to start |
35 |
|
36 |
|
37 |
<error_log> |
38 |
2012/04/03 12:44:52 [emerg] 2062#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35 |
39 |
2012/04/03 12:44:52 [emerg] 2063#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35 |
40 |
2012/04/03 12:45:02 [emerg] 2073#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35 |
41 |
2012/04/03 12:45:02 [emerg] 2074#0: invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35 |
42 |
</error_log> |
43 |
|
44 |
|
45 |
Mmh can it be that nginx and / or php not right build with emerge? |
46 |
|
47 |
|
48 |
|
49 |
Regards |
50 |
Silvio |