PHP with FPM on Gentoo

Silvio Siefke siefke_listen at web.de
Tue Apr 3 10:48:21 UTC 2012


Hello,

On Tue, 3 Apr 2012 04:02:14 -0400 (EDT)
"locojohn" <nginx-forum at nginx.us> wrote:

> mkdir -p /var/run/fastcgi/php-fpm.sock
> 
> php-fpm.conf:
> 
> ;listen = 127.0.0.1:9000
> ;listen.allowed_clients = 127.0.0.1
> listen = /var/run/fastcgi/php-fpm.sock
> listen.owner = nginx
> listen.group = nginx
> 
> nginx.conf:
> 
> location \.php$ {
>   include fastcgi_params;
>   fastcgi_pass unix:/var/run/fastcgi/php-fpm.sock;
> }

Thx for advice. But will not run. When i start nginx it come only 

gentoo-desk ~ # /etc/init.d/nginx start
 * Checking nginx' configuration ...
nginx: [emerg] invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx: [emerg] invalid host in upstream "/var/run/fastcgi/php-fpm.sock" in /etc/nginx/nginx.conf:35
nginx: configuration file /etc/nginx/nginx.conf test failed
 * failed, please correct errors above                                    [ !! ]
 * ERROR: nginx failed to start


<error_log>
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
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
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
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
</error_log>


Mmh can it be that nginx and / or php not right build with emerge?



Regards 
Silvio 



More information about the nginx mailing list